]> BookStack Code Mirror - bookstack/blobdiff - app/Services/PermissionService.php
#47 - Fixes the issues with the test case.
[bookstack] / app / Services / PermissionService.php
index 6f9561a161ed0a8dc8ac85f00c317b1d9df23706..89f80f9360a878f6224a36853a399c691221a6a1 100644 (file)
@@ -468,7 +468,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)) {