Reset the permissions of the admin user.

This commit is contained in:
Jan Böhmer 2022-10-31 21:54:46 +01:00
parent f8aee65d9e
commit 10a035fcea
3 changed files with 11 additions and 3 deletions

View file

@ -151,7 +151,7 @@ class PermissionResolver
//Check if the permission/operation combination is valid
if (! $this->isValidOperation($permission, $operation)) {
throw new InvalidArgumentException('The permission/operation combination is not valid!');
throw new InvalidArgumentException(sprintf('The permission/operation combination "%s.%s" is not valid!', $permission, $operation));
}
$perm_list->setPermissionValue($permission, $operation, $new_val);