(ctx context.Context, arg database.UpdateWorkspaceACLByIDParams)
| 7700 | } |
| 7701 | |
| 7702 | func (q *querier) UpdateWorkspaceACLByID(ctx context.Context, arg database.UpdateWorkspaceACLByIDParams) error { |
| 7703 | fetch := func(ctx context.Context, arg database.UpdateWorkspaceACLByIDParams) (database.WorkspaceTable, error) { |
| 7704 | w, err := q.db.GetWorkspaceByID(ctx, arg.ID) |
| 7705 | if err != nil { |
| 7706 | return database.WorkspaceTable{}, err |
| 7707 | } |
| 7708 | return w.WorkspaceTable(), nil |
| 7709 | } |
| 7710 | |
| 7711 | return fetchAndExec(q.log, q.auth, policy.ActionShare, fetch, q.db.UpdateWorkspaceACLByID)(ctx, arg) |
| 7712 | } |
| 7713 | |
| 7714 | func (q *querier) UpdateWorkspaceAgentConnectionByID(ctx context.Context, arg database.UpdateWorkspaceAgentConnectionByIDParams) error { |
| 7715 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil { |
nothing calls this directly
no test coverage detected