Skip to content

Commit

Permalink
fix: allow admins to create users from the admin panel
Browse files Browse the repository at this point in the history
fixes #2
  • Loading branch information
Litalino committed Nov 1, 2023
1 parent 5a25a83 commit b24bba7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ValidatePassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public function handle(Saving $event)
return;
}

if ($event->actor->isAdmin()) {
return;
}

$data = $event->data;

/**
Expand Down

0 comments on commit b24bba7

Please sign in to comment.