Permalink
Browse files

Checking for user group var to exist

  • Loading branch information...
1 parent 1e02559 commit 3bf78e49dd8a233ee88a18084014f0cd70b7ea69 @viveleroi committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/user/User.php
View
@@ -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');

0 comments on commit 3bf78e4

Please sign in to comment.