Skip to content

Commit f74d6f4

Browse files
author
Jayesh
committed
merged conflicts
2 parents 6741376 + db2ac66 commit f74d6f4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

utils/handlers/config.go

-8
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,6 @@ func HandleStoreDeploymentConfig(adminMan *admin.Manager, syncMan *syncman.SyncM
185185
}
186186
defer r.Body.Close()
187187

188-
// Check if the request is authorised
189-
status, err := adminMan.IsAdminOpAuthorised(token, "deploy")
190-
if err != nil {
191-
w.WriteHeader(status)
192-
json.NewEncoder(w).Encode(map[string]string{"error": err.Error()})
193-
return
194-
}
195-
196188
// Set the deploy config
197189
if err := syncMan.SetDeployConfig(token, c); err != nil {
198190
w.WriteHeader(http.StatusInternalServerError)

0 commit comments

Comments
 (0)