mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Fix permission query error for Guest model. Fixes #84
This commit is contained in:
parent
895fad928d
commit
6522ecffbc
|
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user