MCPcopy Index your code
hub / github.com/coder/coder / groupPermissions

Function groupPermissions

site/src/api/queries/groups.ts:147–163  ·  view source on GitHub ↗
(groupId: string)

Source from the content-addressed store, hash-verified

145];
146
147export const groupPermissions = (groupId: string) => {
148 return {
149 queryKey: groupPermissionsKey(groupId),
150 queryFn: () =>
151 API.checkAuthorization({
152 checks: {
153 canUpdateGroup: {
154 object: {
155 resource_type: "group",
156 resource_id: groupId,
157 },
158 action: "update",
159 },
160 },
161 }),
162 };
163};
164
165export const createGroup = (queryClient: QueryClient, organization: string) => {
166 return {

Callers 1

GroupPageFunction · 0.90

Calls 2

groupPermissionsKeyFunction · 0.85
checkAuthorizationMethod · 0.80

Tested by

no test coverage detected