Browse Source

is_allowed improvement (#166)

develop
REJack 9 years ago
parent
commit
e9e15035d6
  1. 5
      application/libraries/Aauth.php

5
application/libraries/Aauth.php

@ -1611,20 +1611,17 @@ class Aauth {
if( $query->num_rows() > 0){
return TRUE;
} else {
if( $user_id===FALSE){
return $this->is_group_allowed($perm_id);
} else {
$g_allowed=FALSE;
foreach( $this->get_user_groups($user_id) as $group ){
if ( $this->is_group_allowed($perm_id, $group->id) ){
$g_allowed=TRUE;
break;
}
}
return $g_allowed;
}
}
}
/**
* Is Group allowed

Loading…
Cancel
Save