mirror of
https://github.com/flarum/framework.git
synced 2025-03-03 20:19:56 +08:00
Give all users guest permissions as well
This commit is contained in:
parent
f35fe5d0e2
commit
278ff7b9c2
@ -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…
x
Reference in New Issue
Block a user