This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user