submissions: typo in error variable names

This commit is contained in:
Quaternions 2025-03-28 23:55:07 -07:00
parent f2d8c49647
commit 4515eb6da2
Signed by: Quaternions
GPG Key ID: D0DF5964F79AC131

@ -48,8 +48,8 @@ var (
ErrAcceptOwnSubmission = fmt.Errorf("%w: You cannot accept your own submission as the submitter", ErrPermissionDenied)
ErrDelayReset = errors.New("Please give the validator at least 10 seconds to operate before attempting to reset the status")
ErrPermissionDeniedNotSubmitter = fmt.Errorf("%w: You must be the submitter to perform this action", ErrPermissionDenied)
ErrPermissionDeniedNeedSubmissionRelease = fmt.Errorf("%w: Need Role SubmissionRelease", ErrPermissionDenied)
ErrPermissionDeniedNeedSubmissionUpload = fmt.Errorf("%w: Need Role SubmissionUpload", ErrPermissionDenied)
ErrPermissionDeniedNeedRoleSubmissionRelease = fmt.Errorf("%w: Need Role SubmissionRelease", ErrPermissionDenied)
ErrPermissionDeniedNeedRoleSubmissionUpload = fmt.Errorf("%w: Need Role SubmissionUpload", ErrPermissionDenied)
ErrPermissionDeniedNeedRoleSubmissionReview = fmt.Errorf("%w: Need Role SubmissionReview", ErrPermissionDenied)
ErrPermissionDeniedNeedRoleMapDownload = fmt.Errorf("%w: Need Role MapDownload", ErrPermissionDenied)
ErrPermissionDeniedNeedRoleScriptWrite = fmt.Errorf("%w: Need Role ScriptWrite", ErrPermissionDenied)
@ -393,7 +393,7 @@ func (svc *Service) ActionSubmissionTriggerUpload(ctx context.Context, params ap
}
// check if caller has required role
if !has_role {
return ErrPermissionDeniedNeedSubmissionUpload
return ErrPermissionDeniedNeedRoleSubmissionUpload
}
// track who is performing the upload action
@ -465,7 +465,7 @@ func (svc *Service) ActionSubmissionValidated(ctx context.Context, params api.Ac
}
// check if caller has required role
if !has_role {
return ErrPermissionDeniedNeedSubmissionUpload
return ErrPermissionDeniedNeedRoleSubmissionUpload
}
// check when submission was updated
@ -672,7 +672,7 @@ func (svc *Service) ReleaseSubmissions(ctx context.Context, request []api.Releas
}
// check if caller has required role
if !has_role {
return ErrPermissionDeniedNeedSubmissionRelease
return ErrPermissionDeniedNeedRoleSubmissionRelease
}
idList := make([]int64, len(request))