1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

Fix Laravel 5.1 compat

This commit is contained in:
Toby Zerner
2015-08-13 10:41:17 +09:30
parent 46a69b6b7e
commit 8aafce5fd8

View File

@@ -349,7 +349,7 @@ class User extends Model
}
if (is_null($this->permissions)) {
$this->permissions = $this->permissions()->lists('permission');
$this->permissions = $this->permissions()->lists('permission')->all();
}
return in_array($permission, $this->permissions);