1
0
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:
Toby Zerner
2016-01-16 14:07:13 +10:30
parent bff128c9fd
commit ae0a510b1f

View File

@@ -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')) {