mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
remove todos
This commit is contained in:
@ -29,9 +29,6 @@ func (api *API) templateVersionPresets(rw http.ResponseWriter, r *http.Request)
|
||||
return
|
||||
}
|
||||
|
||||
// TODO (sasswart): Test case: what if a user tries to read presets or preset parameters from a different org?
|
||||
// TODO (sasswart): Do a prelim auth check here.
|
||||
|
||||
presetParams, err := api.Database.GetPresetParametersByTemplateVersionID(ctx, templateVersion.ID)
|
||||
if err != nil {
|
||||
httpapi.Write(ctx, rw, http.StatusInternalServerError, codersdk.Response{
|
||||
|
@ -16,6 +16,8 @@ import (
|
||||
)
|
||||
|
||||
func TestTemplateVersionPresets(t *testing.T) {
|
||||
// TODO (sasswart): Test case: what if a user tries to read presets or preset parameters from a different org?
|
||||
|
||||
t.Parallel()
|
||||
|
||||
sdkPreset := codersdk.Preset{
|
||||
|
Reference in New Issue
Block a user