feat(invitations): let candidates read, view and decline their invitations
This commit is contained in:
1 parent
c410636b7f
commit
ac57c05aca
27 files changed
+3285
-21
No files matched your search
@@ -223,6 +223,7 @@ func RestoreInvitation(stored StoredInvitation) (Invitation, error) {
|
||||
const location = "domain.RestoreInvitation"
|
||||
for _, defect := range []func(StoredInvitation) string{
|
||||
storedInvitationIdentityDefect, storedInvitationVersionDefect, storedInvitationLifecycleDefect,
|
||||
storedInvitationAnswerDefect,
|
||||
} {
|
||||
if reason := defect(stored); reason != "" {
|
||||
return Invitation{}, fmt.Errorf("%s - %s: %w", location, reason, ErrInvalidInvitation)
|
||||
|
||||
Reference in new issue
Block a user