mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Fixed PHPstan issues
This commit is contained in:
parent
2554120e6e
commit
df11f62a2f
5 changed files with 11 additions and 4 deletions
|
@ -108,8 +108,12 @@ class UsersPermissionsCommand extends Command
|
|||
$this->entityManager->flush();
|
||||
|
||||
break; //Show the new table
|
||||
} else {
|
||||
}
|
||||
|
||||
if (isset($op_to_edit, $perm_to_edit)) {
|
||||
$this->permissionResolver->setPermission($user, $perm_to_edit, $op_to_edit, $new_value);
|
||||
} else {
|
||||
throw new \RuntimeException('Erorr while editing permission');
|
||||
}
|
||||
|
||||
//Ensure that all operations are set accordingly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue