mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Give all users guest permissions as well
This commit is contained in:
parent
9fd5995703
commit
1e5a3d5ea5
|
@ -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', array_merge([Group::GUEST_ID], $this->groups->lists('id')));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user