HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: How to implement a confidential category?
public function categoriesController_render_before($sender) { if ($sender->data('Category.CategoryID') == 4) { $sender->permission('Vanilla.Comments.Edit'); } } public function discussionController_render_before($sender) { $isDiscussionCreator = $sender->data('Discussion.InsertUserID') == Gdn::session()->UserID; if… -
Re: How to implement a confidential category?
Many thanks for your reply, Bleistivt. Conversations: we want to avoid PMs, mark discussions as resolved, and generally use the forum features. Yes, I agree about leaving permissions alone. A quick fix to introduce the business logic you aptly describe (users can create, but only view their own discussions) is to suppress…
2 results