mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Fix Laravel 5.1 compat
This commit is contained in:
parent
6e087f7dc0
commit
8375bae851
|
@ -558,7 +558,7 @@ class User extends Model
|
||||||
// standard 'member' group, as well as any other groups they've been
|
// standard 'member' group, as well as any other groups they've been
|
||||||
// assigned to.
|
// assigned to.
|
||||||
if ($this->is_activated) {
|
if ($this->is_activated) {
|
||||||
$groupIds = array_merge($groupIds, [Group::MEMBER_ID], $this->groups->lists('id'));
|
$groupIds = array_merge($groupIds, [Group::MEMBER_ID], $this->groups->lists('id')->all());
|
||||||
}
|
}
|
||||||
|
|
||||||
event(new GetUserGroups($this, $groupIds));
|
event(new GetUserGroups($this, $groupIds));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user