We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4c2bb4 + b3bf200 commit e2a1f9bCopy full SHA for e2a1f9b
src/Service/Permission/PermissionService.php
@@ -216,6 +216,10 @@ private function getPermissionsFromWorkspaces(
216
return $this->workspaceService->getDeepestWorkspace($userWorkspaces)->getPermissions();
217
}
218
219
+ if (empty($userWorkspaces)) {
220
+ return $this->workspaceService->getDeepestWorkspace($roleWorkspaces)->getPermissions();
221
+ }
222
+
223
$userWorkspace = $this->workspaceService->getDeepestWorkspace($userWorkspaces);
224
$roleWorkspace = $this->workspaceService->getDeepestWorkspace($roleWorkspaces);
225
0 commit comments