1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-11-22 05:42:39 +03:00

Merge branch 'v0.16'

This commit is contained in:
Dan Brown
2017-06-04 15:39:55 +01:00

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();
} }
/** /**