From 361544600acd4784f76e33a19d26d7aaec59e85b Mon Sep 17 00:00:00 2001 From: Emre Akay Date: Wed, 25 Jun 2014 16:55:05 +0300 Subject: [PATCH] v2 dev --- application/libraries/Aauth.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index 0260f3e..5a823d8 100644 --- a/application/libraries/Aauth.php +++ b/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;}