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

Method UpdateCryptoKeyDeletesAt

coderd/database/dbauthz/dbauthz.go:6805–6810  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateCryptoKeyDeletesAtParams)

Source from the content-addressed store, hash-verified

6803}
6804
6805func (q *querier) UpdateCryptoKeyDeletesAt(ctx context.Context, arg database.UpdateCryptoKeyDeletesAtParams) (database.CryptoKey, error) {
6806 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceCryptoKey); err != nil {
6807 return database.CryptoKey{}, err
6808 }
6809 return q.db.UpdateCryptoKeyDeletesAt(ctx, arg)
6810}
6811
6812func (q *querier) UpdateCustomRole(ctx context.Context, arg database.UpdateCustomRoleParams) (database.CustomRole, error) {
6813 if !arg.OrganizationID.Valid || arg.OrganizationID.UUID == uuid.Nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected