From ae0a510b1f1223e1e7ccdfb6dc394e0910a15112 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 16 Jan 2016 14:07:13 +1030 Subject: [PATCH] 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. --- framework/core/src/Api/Serializer/ForumSerializer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/src/Api/Serializer/ForumSerializer.php b/framework/core/src/Api/Serializer/ForumSerializer.php index 0820f75c2..4d14f6691 100644 --- a/framework/core/src/Api/Serializer/ForumSerializer.php +++ b/framework/core/src/Api/Serializer/ForumSerializer.php @@ -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')) {