mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-02-20 22:18:25 +08:00
Fixed permission row permission check
This commit is contained in:
parent
bd412ddbf9
commit
6951aa3d39
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user