Fixed permission row permission check

This commit is contained in:
Dan Brown 2022-10-14 16:03:06 +01:00
parent bd412ddbf9
commit 6951aa3d39
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -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);