Fixed PHPstan issues

This commit is contained in:
Jan Böhmer 2022-11-27 16:53:44 +01:00
parent 2554120e6e
commit df11f62a2f
5 changed files with 11 additions and 4 deletions

View file

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