MCPcopy Create free account
hub / github.com/coder/coder / UpsertAISeatState

Method UpsertAISeatState

coderd/database/dbauthz/dbauthz.go:7996–8001  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpsertAISeatStateParams)

Source from the content-addressed store, hash-verified

7994}
7995
7996func (q *querier) UpsertAISeatState(ctx context.Context, arg database.UpsertAISeatStateParams) (bool, error) {
7997 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceAiSeat); err != nil {
7998 return false, err
7999 }
8000 return q.db.UpsertAISeatState(ctx, arg)
8001}
8002
8003func (q *querier) UpsertAnnouncementBanners(ctx context.Context, value string) error {
8004 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
UpsertAISeatStateMethod · 0.65

Tested by

no test coverage detected