test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-08 17:12:39 +11:00
parent c9a161ca25
commit 598b9442c0

View File

@@ -119,12 +119,15 @@ func UpdateSecret(c *gin.Context) {
log.Printf("UpdateSecret received JSON input '%v'\n", input) log.Printf("UpdateSecret received JSON input '%v'\n", input)
if input.SafeId == 0 && len(input.SafeName) == 0 { // Temporarily disable because we should be able to figure it out without user specifying
errString := "StoreSecret no safe specified\n" /*
log.Print(errString) if input.SafeId == 0 && len(input.SafeName) == 0 {
c.JSON(http.StatusBadRequest, gin.H{"error": errString}) errString := "UpdateSecret no safe specified\n"
return log.Print(errString)
} c.JSON(http.StatusBadRequest, gin.H{"error": errString})
return
}
*/
/* /*
// Get the user and role id of the requestor // Get the user and role id of the requestor