diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index 0260f3e4..5a823d86 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -1113,13 +1113,10 @@ public function is_allowed($perm_par, $group_par=false){ } } else { - // all doors open to admin :) - if ( $this->is_admin( $this->CI->session->userdata('id')) ) {return true;} - - // if public is allowed - if( !$this->is_loggedin() and $this->is_allowed($perm_id, $this->config_vars['public_group']) ){ - return true; - } + // if public is allowed ot he is admin + if ( $this->is_admin( $this->CI->session->userdata('id')) or + $this->is_allowed($perm_id, $this->config_vars['public_group']) ) + {return true;} if (!$this->is_loggedin()){return false;}