mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-08 17:34:32 +02:00
Reset the permissions of the admin user.
This commit is contained in:
parent
f8aee65d9e
commit
10a035fcea
3 changed files with 11 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue