Fix permission query error for Guest model. Fixes #84

This commit is contained in:
Toby Zerner 2015-05-18 12:29:31 +09:30
parent 895fad928d
commit 6522ecffbc

View File

@ -450,7 +450,7 @@ class User extends Model
*/
public function permissions()
{
return Permission::whereIn('group_id', $this->groups()->lists('id'));
return Permission::whereIn('group_id', $this->groups->lists('id'));
}
/**