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.
1 parent 099c8c2 commit b3bf200Copy full SHA for b3bf200
src/Service/Permission/PermissionService.php
@@ -176,6 +176,10 @@ private function getPermissionsFromWorkspaces(
176
return $this->workspaceService->getDeepestWorkspace($userWorkspaces)->getPermissions();
177
}
178
179
+ if (empty($userWorkspaces)) {
180
+ return $this->workspaceService->getDeepestWorkspace($roleWorkspaces)->getPermissions();
181
+ }
182
+
183
$userWorkspace = $this->workspaceService->getDeepestWorkspace($userWorkspaces);
184
$roleWorkspace = $this->workspaceService->getDeepestWorkspace($roleWorkspaces);
185
0 commit comments