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){
|
public function addGroup($uname, $group){
|
||||||
$userFlags = $this->getUsergroups();
|
$userFlags = $this->getUsergroups($uname);
|
||||||
|
|
||||||
if($userFlags){
|
if($userFlags){
|
||||||
$newFlags = ($group | $userFlags);
|
$newFlags = ($group | $userFlags);
|
||||||
|
@ -41,7 +41,7 @@ class UserManager{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function removeGroup($uname, $group){
|
public function removeGroup($uname, $group){
|
||||||
$userFlags = $this->getUsergroups();
|
$userFlags = $this->getUsergroups($uname);
|
||||||
|
|
||||||
if($userFlags){
|
if($userFlags){
|
||||||
$newFlags = ($userFlags & (~ $group));
|
$newFlags = ($userFlags & (~ $group));
|
||||||
|
|
Loading…
Reference in New Issue