mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 19:34:46 +08:00
Remove hack to make tag permissions work
Since we now grant these global permissions if the user has the respective permission for any individual tags.
This commit is contained in:
parent
2e27d5938a
commit
285e397d05
|
@ -75,8 +75,8 @@ class ForumSerializer extends AbstractSerializer
|
|||
'themePrimaryColor' => $this->settings->get('theme_primary_color'),
|
||||
'allowSignUp' => (bool) $this->settings->get('allow_sign_up'),
|
||||
'defaultRoute' => $this->settings->get('default_route'),
|
||||
'canViewDiscussions' => $gate->allows('viewDiscussions') || $this->actor->hasPermissionLike('viewDiscussions'),
|
||||
'canStartDiscussion' => $gate->allows('startDiscussion') || $this->actor->hasPermissionLike('startDiscussion')
|
||||
'canViewDiscussions' => $gate->allows('viewDiscussions'),
|
||||
'canStartDiscussion' => $gate->allows('startDiscussion')
|
||||
];
|
||||
|
||||
if ($gate->allows('administrate')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user