From 598b9442c00ad649ad16bc7b5dd28d1a186bdb0d Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Mon, 8 Jan 2024 17:12:39 +1100 Subject: [PATCH] test --- controllers/store_secrets.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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