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

This commit is contained in:
2024-01-16 17:02:17 +11:00
parent 77d487c1ce
commit b35d365467

View File

@@ -173,11 +173,13 @@ func SecretsGetAllowed(s *Secret, userId int) ([]UserSecret, error) {
// work around to get the UserId populated in the User field of the struct // work around to get the UserId populated in the User field of the struct
r.User.UserId = r.UserUserId r.User.UserId = r.UserUserId
// For debugging purposes /*
debugPrint := utils.PrintStructContents(&r, 0) // For debugging purposes
log.Println(debugPrint) debugPrint := utils.PrintStructContents(&r, 0)
log.Println(debugPrint)
log.Printf("SecretsGetAllowed performed debug print\n") log.Printf("SecretsGetAllowed performed debug print\n")
*/
// Append the secrets to the query output, don't decrypt the secrets (we didn't SELECT them anyway) // Append the secrets to the query output, don't decrypt the secrets (we didn't SELECT them anyway)
//secretResults = append(secretResults, r) //secretResults = append(secretResults, r)