Skip to content

Commit

Permalink
Edit user email
Browse files Browse the repository at this point in the history
  • Loading branch information
alexPopaCode4 committed Dec 3, 2024
1 parent 9b74906 commit e134369
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Filament/Organizations/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ public static function getSchema(): array
->email()
->unique(
ignoreRecord: true,
modifyRuleUsing: fn (Unique $rule) => $rule->whereIn('id', User::getTenantOrganizationUsers()->keys())
modifyRuleUsing: fn (Unique $rule, string $operation) => $operation === 'edit' ? $rule :
$rule->whereIn('id', User::getTenantOrganizationUsers()->keys())
)
->required(),

Expand Down

0 comments on commit e134369

Please sign in to comment.