1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

#47 Adds comment permission to each role.

This commit is contained in:
Abijeet
2017-01-29 14:25:20 +05:30
parent 70991fc1e5
commit 148350009c
4 changed files with 49 additions and 1 deletions

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