BUG 6505 "Users with the "PM_USERS" permission in their role..." Solved!

- ADMIN->Users now enabled for PM_USERS permission
This commit is contained in:
Erik Amaru Ortiz
2011-08-09 16:40:32 -04:00
parent 34e32f49ad
commit b6524547cd
5 changed files with 45 additions and 33 deletions

View File

@@ -996,13 +996,15 @@ class RBAC
$numPerms = func_num_args();
$permissions = func_get_args();
$access = -1;
if ( $numPerms == 1 ){
$access = $this->userCanAccess($permissions[0]);
} else if ( $numPerms > 0 ){
foreach ($permissions as $perm) {
$access = $this->userCanAccess($perm);
if( $access != 1 ) {
$access = -1;
if( $access == 1 ) {
$access = 1;
break;
}
}