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

Method ValidateGroupIDs

coderd/database/dbauthz/dbauthz.go:8421–8429  ·  view source on GitHub ↗
(ctx context.Context, groupIDs []uuid.UUID)

Source from the content-addressed store, hash-verified

8419}
8420
8421func (q *querier) ValidateGroupIDs(ctx context.Context, groupIDs []uuid.UUID) (database.ValidateGroupIDsRow, error) {
8422 // This check is probably overly restrictive, but the "correct" check isn't
8423 // necessarily obvious. It's only used as a verification check for ACLs right
8424 // now, which are performed as system.
8425 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil {
8426 return database.ValidateGroupIDsRow{}, err
8427 }
8428 return q.db.ValidateGroupIDs(ctx, groupIDs)
8429}
8430
8431func (q *querier) ValidateUserIDs(ctx context.Context, userIDs []uuid.UUID) (database.ValidateUserIDsRow, error) {
8432 // This check is probably overly restrictive, but the "correct" check isn't

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
ValidateGroupIDsMethod · 0.65

Tested by

no test coverage detected