This commit is contained in:
@@ -65,6 +65,7 @@ func SecretsGetMultipleSafes(s *Secret, adminRole bool, safeIds []int) ([]Secret
|
||||
args := []interface{}{}
|
||||
var query string
|
||||
if adminRole {
|
||||
log.Printf("SecretsGetMultipleSafes using admin role so not limiting to specific safes\n")
|
||||
// No need to limit query to any safe
|
||||
query = "SELECT * FROM secrets WHERE 1=1 "
|
||||
} else {
|
||||
@@ -101,6 +102,7 @@ func SecretsGetMultipleSafes(s *Secret, adminRole bool, safeIds []int) ([]Secret
|
||||
}
|
||||
|
||||
// Execute the query
|
||||
log.Printf("SecretsGetMultipleSafes query string : '%s'\n%+v\n", query, args)
|
||||
rows, err := db.Queryx(query, args...)
|
||||
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user