Fixed role permission removal bug

This commit is contained in:
Dan Brown 2017-06-04 15:37:10 +01:00
parent 75981c2412
commit f99c8ff99a
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9

View file

@ -259,7 +259,7 @@ class PermissionService
$roleIds = array_map(function($role) { $roleIds = array_map(function($role) {
return $role->id; return $role->id;
}, $roles); }, $roles);
$this->jointPermission->newQuery()->whereIn('id', $roleIds)->delete(); $this->jointPermission->newQuery()->whereIn('role_id', $roleIds)->delete();
} }
/** /**