Browse Source

v2 dev

develop
Emre Akay 11 years ago
parent
commit
361544600a
  1. 11
      application/libraries/Aauth.php

11
application/libraries/Aauth.php

@ -1113,13 +1113,10 @@ class Aauth {
}
}
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;}

Loading…
Cancel
Save