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
9a81153fc4
commit
2a71aa5265
|
@ -349,7 +349,7 @@ class User extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_null($this->permissions)) {
|
if (is_null($this->permissions)) {
|
||||||
$this->permissions = $this->permissions()->lists('permission');
|
$this->permissions = $this->permissions()->lists('permission')->all();
|
||||||
}
|
}
|
||||||
|
|
||||||
return in_array($permission, $this->permissions);
|
return in_array($permission, $this->permissions);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user