mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04: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)
|
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);
|
$role = Role::query()->findOrFail($roleId);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user