Skip to content

Commit

Permalink
Update syntax.php
Browse files Browse the repository at this point in the history
commented out line 78
//if (count($currentgroups) <= count($this->grplst)) { commented out, If the user is in more groups than this page manages it would skip the test to see if the user was in any other groups!
  • Loading branch information
haraldronge committed Apr 14, 2014
1 parent 8d0c799 commit ef0de7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -775,14 +775,14 @@ function _deleteUser()
$currentuser = $this->_auth->retrieveUsers(0, 100000, $currentfilter);
$currentgroups = $currentuser[$selection]['grps'];
//user may only be part of working group parts
if (count($currentgroups) <= count($this->grplst)) {
//if (count($currentgroups) <= count($this->grplst)) { commented out, If the user is in more groups than this page manages it would skip the test to see if the user was in any other groups!
foreach ($currentgroups as $g) {
if (!in_array($g, $this->grplst)) {
msg($this->lang['cant_delete_if_more_groups'], -1);
return false;
}
}
}
//}
}

$count = $this->_auth->triggerUserMod('delete', array($selected));
Expand Down

0 comments on commit ef0de7e

Please sign in to comment.