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)
// Temporarily disable because we should be able to figure it out without user specifying
/*
if input.SafeId == 0 && len(input.SafeName) == 0 { if input.SafeId == 0 && len(input.SafeName) == 0 {
errString := "StoreSecret no safe specified\n" errString := "UpdateSecret no safe specified\n"
log.Print(errString) log.Print(errString)
c.JSON(http.StatusBadRequest, gin.H{"error": errString}) c.JSON(http.StatusBadRequest, gin.H{"error": errString})
return return
} }
*/
/* /*
// Get the user and role id of the requestor // Get the user and role id of the requestor