(ctx context.Context, arg database.InsertCryptoKeyParams)
| 5535 | } |
| 5536 | |
| 5537 | func (q *querier) InsertCryptoKey(ctx context.Context, arg database.InsertCryptoKeyParams) (database.CryptoKey, error) { |
| 5538 | if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceCryptoKey); err != nil { |
| 5539 | return database.CryptoKey{}, err |
| 5540 | } |
| 5541 | return q.db.InsertCryptoKey(ctx, arg) |
| 5542 | } |
| 5543 | |
| 5544 | func (q *querier) InsertCustomRole(ctx context.Context, arg database.InsertCustomRoleParams) (database.CustomRole, error) { |
| 5545 | // Org and site role upsert share the same query. So switch the assertion based on the org uuid. |
nothing calls this directly
no test coverage detected