Fix admins addGroup and removeGroup, missing parameter
This commit is contained in:
parent
7defd8b388
commit
567962c947
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user