(ctx context.Context, value string)
| 5593 | } |
| 5594 | |
| 5595 | func (q *querier) InsertDeploymentID(ctx context.Context, value string) error { |
| 5596 | if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceSystem); err != nil { |
| 5597 | return err |
| 5598 | } |
| 5599 | return q.db.InsertDeploymentID(ctx, value) |
| 5600 | } |
| 5601 | |
| 5602 | func (q *querier) InsertExternalAuthLink(ctx context.Context, arg database.InsertExternalAuthLinkParams) (database.ExternalAuthLink, error) { |
| 5603 | return insertWithAction(q.log, q.auth, rbac.ResourceUser.WithID(arg.UserID).WithOwner(arg.UserID.String()), policy.ActionUpdatePersonal, q.db.InsertExternalAuthLink)(ctx, arg) |
nothing calls this directly
no test coverage detected