|
|
@ -1463,8 +1463,6 @@ class Aauth { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function is_allowed($perm_par, $user_id=FALSE){ |
|
|
|
public function is_allowed($perm_par, $user_id=FALSE){ |
|
|
|
|
|
|
|
|
|
|
|
$perm_id = $this->get_perm_id($perm_par); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( $user_id == FALSE){ |
|
|
|
if( $user_id == FALSE){ |
|
|
|
$user_id = $this->CI->session->userdata('id'); |
|
|
|
$user_id = $this->CI->session->userdata('id'); |
|
|
|
} |
|
|
|
} |
|
|
@ -1474,6 +1472,8 @@ class Aauth { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$perm_id = $this->get_perm_id($perm_par); |
|
|
|
|
|
|
|
|
|
|
|
$query = $this->aauth_db->where('perm_id', $perm_id); |
|
|
|
$query = $this->aauth_db->where('perm_id', $perm_id); |
|
|
|
$query = $this->aauth_db->where('user_id', $user_id); |
|
|
|
$query = $this->aauth_db->where('user_id', $user_id); |
|
|
|
$query = $this->aauth_db->get( $this->config_vars['perm_to_user'] ); |
|
|
|
$query = $this->aauth_db->get( $this->config_vars['perm_to_user'] ); |
|
|
|