mirror of
https://github.com/flarum/framework.git
synced 2025-02-27 23:00:54 +08:00
Fix logic for determining whether users can add tags to a discussion
This commit is contained in:
parent
c099c96703
commit
64d965fa17
@ -34,6 +34,6 @@ class TagPolicy extends AbstractPolicy
|
||||
*/
|
||||
public function addToDiscussion(User $actor, Tag $tag)
|
||||
{
|
||||
return $this->startDiscussion($actor, $tag);
|
||||
return $actor->can('startDiscussion', $tag);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user