mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
parent
60845eeee7
commit
2e6eda3ed1
|
@ -58,7 +58,7 @@ class DiscussionPolicy extends AbstractPolicy
|
||||||
* @param Discussion $discussion
|
* @param Discussion $discussion
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function after(User $actor, $ability, Discussion $discussion)
|
public function can(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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user