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

Method AllUserIDs

coderd/database/dbauthz/dbauthz.go:1624–1631  ·  view source on GitHub ↗
(ctx context.Context, includeSystem bool)

Source from the content-addressed store, hash-verified

1622}
1623
1624func (q *querier) AllUserIDs(ctx context.Context, includeSystem bool) ([]uuid.UUID, error) {
1625 // Although this technically only reads users, only system-related functions
1626 // should be allowed to call this.
1627 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil {
1628 return nil, err
1629 }
1630 return q.db.AllUserIDs(ctx, includeSystem)
1631}
1632
1633func (q *querier) ArchiveChatByID(ctx context.Context, id uuid.UUID) ([]database.Chat, error) {
1634 chat, err := q.db.GetChatByID(ctx, id)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
AllUserIDsMethod · 0.65

Tested by

no test coverage detected