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

Method RemoveUserFromGroups

coderd/database/dbauthz/dbauthz.go:6368–6374  ·  view source on GitHub ↗
(ctx context.Context, arg database.RemoveUserFromGroupsParams)

Source from the content-addressed store, hash-verified

6366}
6367
6368func (q *querier) RemoveUserFromGroups(ctx context.Context, arg database.RemoveUserFromGroupsParams) ([]uuid.UUID, error) {
6369 // This is a system function to clear user groups in group sync.
6370 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil {
6371 return nil, err
6372 }
6373 return q.db.RemoveUserFromGroups(ctx, arg)
6374}
6375
6376func (q *querier) ReorderChatQueuedMessageToFront(ctx context.Context, arg database.ReorderChatQueuedMessageToFrontParams) (int64, error) {
6377 chat, err := q.db.GetChatByID(ctx, arg.ChatID)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
RemoveUserFromGroupsMethod · 0.65

Tested by

no test coverage detected