]> BookStack Code Mirror - bookstack/blobdiff - app/Services/PermissionService.php
Merge branch 'master' of https://github.com/Abijeet/BookStack
[bookstack] / app / Services / PermissionService.php
index 8b47e1246683c4f30e33976cb4cc84fdfbe58dde..6f27db9b7cd8bd2cb17e280b833a132c682ff7e3 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)) {