8000 canEditOrganization was lying · coder/coder@9f39257 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f39257

Browse files
committed
canEditOrganization was lying
1 parent 713b954 commit 9f39257

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

site/src/api/queries/organizations.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ const orgChecks = (
155155
},
156156
action: "read",
157157
},
158+
editGroups: {
159+
object: {
160+
resource_type: "group",
161+
organization_id: organizationId,
162+
},
163+
action: "update",
164+
},
158165
editOrganization: {
159166
object: {
160167
resource_type: "organization",

site/src/pages/ManagementSettingsPage/ManagementSettingsLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export const canEditOrganization = (
3030
return (
3131
permissions &&
3232
(permissions.editOrganization ||
33-
permissions.viewMembers ||
34-
permissions.viewGroups)
33+
permissions.editMembers ||
34+
permissions.editGroups)
3535
);
3636
};
3737

0 commit comments

Comments
 (0)
0