mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +02: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:
@@ -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')) {
|
||||
|
Reference in New Issue
Block a user