This plugin just hide edit button. I can manually type url http://vanillaforums.org/post/EditComment/94100 and edit my post. Need use permission PostController::EditComment() + some other events AfterSaveComment, maybe other... Regular expression to remove edit button - overkill - will not work for custom theme.
@S, if you read description or readme.txt, the problem of not preventing edition by manual linking is a known issue.
If you can think of a better way than regular expression - let me know (it could be hidden via custom css, something like #Comment_X EditComment or EditDiscussion, but it's not much better really).
Permission PostController::EditComment() won't work, since these permissions are hard-coded in view helper_functions.php:
AfterSaveComment is useless anyway. It fires only for new (insert), not update (editing). You can ask to add any event in any place: use pull request @ github or try luck here http://vanillaforums.org/discussion/comment/96266/
Comments
Need use permission PostController::EditComment() + some other events AfterSaveComment, maybe other...
Regular expression to remove edit button - overkill - will not work for custom theme.
If you can think of a better way than regular expression - let me know (it could be hidden via custom css, something like #Comment_X EditComment or EditDiscussion, but it's not much better really).
Permission PostController::EditComment() won't work, since these permissions are hard-coded in view helper_functions.php: So, there are no "nice" ways to achieve this.
Another way is to use JS, but if user has js disabled he'd have all edit links at their places.
You can ask to add any event in any place: use pull request @ github or try luck here http://vanillaforums.org/discussion/comment/96266/
@S, yes, I am on my way to add BeforeSaveComment event to vanilla code.