mirror of
https://github.com/flarum/core.git
synced 2025-07-23 09:41:26 +02:00
Fix Laravel 5.1 compat
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user