mirror of
https://github.com/flarum/framework.git
synced 2025-02-27 22:48:39 +08:00
Fix old-style return true
in policy
This commit is contained in:
parent
765254c4f5
commit
c099c96703
@ -80,7 +80,7 @@ class DiscussionPolicy extends AbstractPolicy
|
||||
|| ($allowEditTags === 'reply' && $discussion->participant_count <= 1)
|
||||
|| (is_numeric($allowEditTags) && $discussion->created_at->diffInMinutes(new Carbon) < $allowEditTags)
|
||||
) {
|
||||
return true;
|
||||
return $this->allow();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user