fix wrong vartype for log

This commit is contained in:
Christoph Kluge 2023-01-12 11:34:21 +01:00
parent bad3f9ea95
commit 84a1c4bdaf

View File

@ -456,7 +456,7 @@ func (r *JobRepository) FindUser(ctx context.Context, searchterm string) (userna
return "", ErrNotFound return "", ErrNotFound
} else { } else {
log.Infof("Non-Admin User %s : Requested Query Username -> %s: Forbidden", user, username) log.Infof("Non-Admin User %s : Requested Query Username -> %s: Forbidden", user.Name, username)
return "", ErrForbidden return "", ErrForbidden
} }
} }
@ -475,7 +475,7 @@ func (r *JobRepository) FindProject(ctx context.Context, searchterm string) (pro
return "", ErrNotFound return "", ErrNotFound
} else { } else {
log.Infof("Non-Admin User %s : Requested Query Project -> %s: Forbidden", user, project) log.Infof("Non-Admin User %s : Requested Query Project -> %s: Forbidden", user.Name, project)
return "", ErrForbidden return "", ErrForbidden
} }
} }