mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Fixed permission row permission check
This commit is contained in:
@ -160,7 +160,7 @@ class PermissionsController extends Controller
|
||||
*/
|
||||
public function formRowForRole(string $entityType, string $roleId)
|
||||
{
|
||||
$this->checkPermissionOr('restrictions-manage', fn() => userCan('restrictions-manage-all'));
|
||||
$this->checkPermissionOr('restrictions-manage-all', fn() => userCan('restrictions-manage-own'));
|
||||
|
||||
$role = Role::query()->findOrFail($roleId);
|
||||
|
||||
|
Reference in New Issue
Block a user