Skip to content

Commit

Permalink
Checking for user group var to exist
Browse files Browse the repository at this point in the history
  • Loading branch information
viveleroi committed Apr 3, 2012
1 parent 1e02559 commit 3bf78e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/user/User.php
Expand Up @@ -503,7 +503,7 @@ public function userHasAccess($module = false, $method = false, $interface = fal
if($this->isLoggedIn() && $method != 'logout'){

// first identify any groups this user belongs to
if(is_array($this->users_groups)){
if(isset($this->users_groups) && is_array($this->users_groups)){
$groups = $this->users_groups;
} else {
$model = model()->open('user_group_link');
Expand Down

0 comments on commit 3bf78e4

Please sign in to comment.