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 2e27d5938a
commit 285e397d05

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