Skip to content

Commit e2a1f9b

Browse files
committed
Merge branch '1.3' into 2.x
2 parents d4c2bb4 + b3bf200 commit e2a1f9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Service/Permission/PermissionService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ private function getPermissionsFromWorkspaces(
216216
return $this->workspaceService->getDeepestWorkspace($userWorkspaces)->getPermissions();
217217
}
218218

219+
if (empty($userWorkspaces)) {
220+
return $this->workspaceService->getDeepestWorkspace($roleWorkspaces)->getPermissions();
221+
}
222+
219223
$userWorkspace = $this->workspaceService->getDeepestWorkspace($userWorkspaces);
220224
$roleWorkspace = $this->workspaceService->getDeepestWorkspace($roleWorkspaces);
221225

0 commit comments

Comments
 (0)