Fix Laravel 5.1 compat

This commit is contained in:
Toby Zerner 2015-08-13 10:41:17 +09:30
parent 9a81153fc4
commit 2a71aa5265

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);