From bb46697277ac1d4aaf6a0b84f01bbc828b0aa090 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 27 Nov 2024 19:06:19 -0800 Subject: [PATCH] pseudocode --- pkg/service/submissions.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/service/submissions.go b/pkg/service/submissions.go index 022c813..2b6473a 100644 --- a/pkg/service/submissions.go +++ b/pkg/service/submissions.go @@ -127,6 +127,9 @@ func (svc *Service) PatchSubmissionCompleted(ctx context.Context, params api.Pat // PATCH /submissions/{SubmissionID}/model func (svc *Service) PatchSubmissionModel(ctx context.Context, params api.PatchSubmissionModelParams) error { // check if caller has Submitter role + // if !CALLER_ROLES.INCLUDES(ROLE_SUBMITTER){ + // return ErrPermissionDenied + // } // check if Status is ChangesRequested|Submitted|UnderConstruction pmap := datastore.Optional() pmap.AddNotNil("asset_id", params.ModelID)