fix: update delete workspace permission and condition case (#18930)
handles delete option edgecase: when user has the delete permission but workspace has applications, user should not be able to delete the workspace. This commit hides the option.
This commit is contained in:
parent
91f81484b4
commit
c8d396fa32
|
|
@ -705,7 +705,7 @@ function ApplicationsSection(props: any) {
|
||||||
canInviteToWorkspace ||
|
canInviteToWorkspace ||
|
||||||
hasManageWorkspacePermissions ||
|
hasManageWorkspacePermissions ||
|
||||||
hasCreateNewApplicationPermission ||
|
hasCreateNewApplicationPermission ||
|
||||||
canDeleteWorkspace;
|
(canDeleteWorkspace && applications.length === 0);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<WorkspaceSection
|
<WorkspaceSection
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user