(ctx context.Context, arg database.UpdateReplicaParams)
| 7187 | } |
| 7188 | |
| 7189 | func (q *querier) UpdateReplica(ctx context.Context, arg database.UpdateReplicaParams) (database.Replica, error) { |
| 7190 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil { |
| 7191 | return database.Replica{}, err |
| 7192 | } |
| 7193 | return q.db.UpdateReplica(ctx, arg) |
| 7194 | } |
| 7195 | |
| 7196 | func (q *querier) UpdateTailnetPeerStatusByCoordinator(ctx context.Context, arg database.UpdateTailnetPeerStatusByCoordinatorParams) ([]uuid.UUID, error) { |
| 7197 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceTailnetCoordinator); err != nil { |
nothing calls this directly
no test coverage detected