1
0
mirror of https://github.com/flarum/core.git synced 2025-08-26 01:34:16 +02:00

Fix permissions not applying

The AbstractPolicy's `before` method was changed to `after` a while ago,
and this instance must've slipped through the cracks.
This commit is contained in:
Toby Zerner
2017-07-20 09:46:37 +09:30
parent 3c0efb3373
commit 05fab134e9

View File

@@ -58,7 +58,7 @@ class DiscussionPolicy extends AbstractPolicy
* @param Discussion $discussion * @param Discussion $discussion
* @return bool * @return bool
*/ */
public function before(User $actor, $ability, Discussion $discussion) public function after(User $actor, $ability, Discussion $discussion)
{ {
// Wrap all discussion permission checks with some logic pertaining to // Wrap all discussion permission checks with some logic pertaining to
// the discussion's tags. If the discussion has a tag that has been // the discussion's tags. If the discussion has a tag that has been