]> BookStack Code Mirror - bookstack/blobdiff - app/Services/PermissionService.php
Merge branch 'master' of https://github.com/Abijeet/BookStack
[bookstack] / app / Services / PermissionService.php
index 1e75308a07e3734ac6771cf2b78a5c5babe8f3d7..cb0b68026a7de99e8ec16aaf41b2b4a566ad9ecd 100644 (file)
@@ -406,7 +406,7 @@ class PermissionService
         $action = end($explodedPermission);
         $this->currentAction = $action;
 
-        $nonJointPermissions = ['restrictions', 'image', 'attachment'];
+        $nonJointPermissions = ['restrictions', 'image', 'attachment', 'comment'];
 
         // Handle non entity specific jointPermissions
         if (in_array($explodedPermission[0], $nonJointPermissions)) {