mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: fix loading states and permissions checks in organization settings (#16465)
This commit is contained in:
@@ -16,7 +16,6 @@ export const checks = {
|
||||
readWorkspaceProxies: "readWorkspaceProxies",
|
||||
editWorkspaceProxies: "editWorkspaceProxies",
|
||||
createOrganization: "createOrganization",
|
||||
editAnyOrganization: "editAnyOrganization",
|
||||
viewAnyGroup: "viewAnyGroup",
|
||||
createGroup: "createGroup",
|
||||
viewAllLicenses: "viewAllLicenses",
|
||||
@@ -122,13 +121,6 @@ export const permissionsToCheck = {
|
||||
},
|
||||
action: "create",
|
||||
},
|
||||
[checks.editAnyOrganization]: {
|
||||
object: {
|
||||
resource_type: "organization",
|
||||
any_org: true,
|
||||
},
|
||||
action: "update",
|
||||
},
|
||||
[checks.viewAnyGroup]: {
|
||||
object: {
|
||||
resource_type: "group",
|
||||
|
||||
Reference in New Issue
Block a user