diff --git a/pkg/service/service.go b/pkg/service/service.go index b6fe682..14a1e09 100644 --- a/pkg/service/service.go +++ b/pkg/service/service.go @@ -2,10 +2,18 @@ package service import ( "context" + "errors" "git.itzana.me/strafesnet/maps-service/pkg/api" "git.itzana.me/strafesnet/maps-service/pkg/datastore" ) +var ( + // ErrPermissionDenied caller does not have the required role + ErrPermissionDenied = errors.New("Permission denied") + // ErrUserInfo user info is missing for some reason + ErrUserInfo = errors.New("Missing user info") +) + type Service struct { DB datastore.Datastore } diff --git a/pkg/service/submissions.go b/pkg/service/submissions.go index 32e2a0e..b2575f9 100644 --- a/pkg/service/submissions.go +++ b/pkg/service/submissions.go @@ -12,10 +12,6 @@ import ( var ( // ErrInvalidSourceStatus current submission status cannot change to destination status ErrInvalidSourceStatus = errors.New("Invalid source status") - // ErrPermissionDenied caller does not have the required role - ErrPermissionDenied = errors.New("Permission denied") - // ErrUserInfo user info is missing for some reason - ErrUserInfo = errors.New("Missing user info") ) // POST /submissions