Skip to content

Commit

Permalink
v2 dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Emre Akay committed Jun 25, 2014
1 parent 77e30dc commit 3615446
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;}

Expand Down

0 comments on commit 3615446

Please sign in to comment.