Show
Ignore:
Timestamp:
08/14/07 02:03:15 (3 years ago)
Author:
eevee
Message:

Fixed an undef dereference.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/lib/Vee/Authorization.pm

    r260 r292  
    3232    my ($c, $permission, $scope) = @_; 
    3333    $scope = $scope ? [ $scope, '' ] : ''; 
    34     return 0 unless $c->user_exists; 
     34    return 0 unless $c->user; 
    3535 
    3636    my @usergroups = $c->model('UserGroups')->search({ userid => [ 0, $c->user->obj->id ] })->get_column('groupid')->all;