Skip to content

Commit

Permalink
Make forget command idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
pablothedude committed Jan 16, 2025
1 parent 33aa8cd commit d157826
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Surfnet/Stepup/Identity/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -1003,8 +1003,6 @@ public function expressPreferredLocale(Locale $preferredLocale): void

public function forget(): void
{
$this->assertNotForgotten();

if ($this->registrationAuthorities->count() !== 0) {
throw new DomainException('Cannot forget an identity that is currently accredited as an RA(A)');
}
Expand Down

0 comments on commit d157826

Please sign in to comment.