temp disable user union
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -96,7 +96,7 @@ func SecretsGetAllowed(s *Secret, userId int) ([]UserSecret, error) {
|
|||||||
query += " AND secrets.UserName LIKE ? "
|
query += " AND secrets.UserName LIKE ? "
|
||||||
queryArgs = append(queryArgs, s.UserName)
|
queryArgs = append(queryArgs, s.UserName)
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
// Query for user access
|
// Query for user access
|
||||||
query += `
|
query += `
|
||||||
UNION
|
UNION
|
||||||
@@ -123,6 +123,7 @@ func SecretsGetAllowed(s *Secret, userId int) ([]UserSecret, error) {
|
|||||||
query += " AND secrets.UserName LIKE ? "
|
query += " AND secrets.UserName LIKE ? "
|
||||||
queryArgs = append(queryArgs, s.UserName)
|
queryArgs = append(queryArgs, s.UserName)
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// Execute the query
|
// Execute the query
|
||||||
log.Printf("SecretsGetAllowedForGroup query string : '%s'\n%+v\n", query, queryArgs)
|
log.Printf("SecretsGetAllowedForGroup query string : '%s'\n%+v\n", query, queryArgs)
|
||||||
@@ -140,6 +141,7 @@ func SecretsGetAllowed(s *Secret, userId int) ([]UserSecret, error) {
|
|||||||
log.Printf("SecretsGetAllowedForGroup error parsing sql record : '%s'\n", err)
|
log.Printf("SecretsGetAllowedForGroup error parsing sql record : '%s'\n", err)
|
||||||
return secretResults, err
|
return secretResults, err
|
||||||
}
|
}
|
||||||
|
log.Printf("r: %v\n", r)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// Decrypt the secret
|
// Decrypt the secret
|
||||||
|
Reference in New Issue
Block a user