Skip to content
Browse files

Fixed capitalisation of AG_Auth.php library file & a bug when pulling…

… in group id's from the session.
  • Loading branch information...
1 parent 7203faf commit 129e77ace5ffb4398b6e059a308214147ff7d144 @adamgriffiths committed Dec 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 libraries/{AG_Auth.php → ag_auth.php}
View
2 libraries/AG_Auth.php → libraries/ag_auth.php
@@ -81,7 +81,7 @@ public function restrict($group = NULL, $single = NULL)
elseif($this->logged_in() == TRUE)
{
$level = $this->config['auth_groups'][$group];
- $user_level = $this->CI->session->userdata('group');
+ $user_level = $this->CI->session->userdata('group_id');
if($user_level > $level OR $single == TRUE && $user_level !== $level)
{

0 comments on commit 129e77a

Please sign in to comment.
Something went wrong with that request. Please try again.