diff --git a/framework/core/src/Core/Models/User.php b/framework/core/src/Core/Models/User.php index 957ff8a05..001e54e6e 100755 --- a/framework/core/src/Core/Models/User.php +++ b/framework/core/src/Core/Models/User.php @@ -450,7 +450,7 @@ class User extends Model */ public function permissions() { - return Permission::whereIn('group_id', $this->groups()->lists('id')); + return Permission::whereIn('group_id', $this->groups->lists('id')); } /**