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

This commit is contained in:
2024-01-09 11:30:13 +11:00
parent 143e402dd6
commit e5764553d8
2 changed files with 3 additions and 1 deletions

View File

@@ -72,8 +72,9 @@ func SecretsGetAllowedForGroup(s *Secret, userId int) ([]UserSecret, error) {
INNER JOIN permissions ON groups.GroupId = permissions.GroupId
INNER JOIN safes on permissions.SafeId = safes.SafeId
INNER JOIN secrets on secrets.SafeId = safes.SafeId
WHERE users.UserId = ?`
WHERE users.UserId = ? `
queryArgs = append(queryArgs, userId)
log.Printf("queryArgs: %v\n", queryArgs)
// Make sure at least one parameter was specified
if s.DeviceName == "" && s.DeviceCategory == "" && s.UserName == "" {