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