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

This commit is contained in:
2024-01-09 22:10:59 +11:00
parent 9c2ff979fb
commit 7e5be4e74f
2 changed files with 8 additions and 2 deletions

View File

@@ -136,10 +136,12 @@ func SecretsGetAllowed(s *Secret, userId int) ([]UserSecret, error) {
// work around to get the UserId populated in the User field of the struct
r.User.UserId = r.UserUserId
// For debugging purposes
debugPrint := utils.PrintStructContents(&r, 0)
log.Println(debugPrint)
// Don't decrypt the secrets in the results of this query
// Append the secrets to the query output, don't decrypt the secrets (we didn't SELECT them anyway)
secretResults = append(secretResults, r)
}
log.Printf("SecretsGetAllowedForGroup retrieved '%d' results\n", len(secretResults))