Fix admins addGroup and removeGroup, missing parameter

This commit is contained in:
Felix Albrigtsen 2023-01-19 11:27:48 +01:00
parent 7defd8b388
commit 567962c947
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ class UserManager{
}
public function addGroup($uname, $group){
$userFlags = $this->getUsergroups();
$userFlags = $this->getUsergroups($uname);
if($userFlags){
$newFlags = ($group | $userFlags);
@ -41,7 +41,7 @@ class UserManager{
}
public function removeGroup($uname, $group){
$userFlags = $this->getUsergroups();
$userFlags = $this->getUsergroups($uname);
if($userFlags){
$newFlags = ($userFlags & (~ $group));
@ -131,4 +131,4 @@ class UserManager{
return $users;
}
}
}