Skip to content

Commit

Permalink
Merge pull request #6802 from getkirby/v5/fix/6801-user-create-role-d…
Browse files Browse the repository at this point in the history
…efault

User create dialog: Fix `role` default
  • Loading branch information
bastianallgeier authored Nov 21, 2024
2 parents 6adc851 + e419d79 commit 2591e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/areas/users/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
'email' => '',
'password' => '',
'translation' => $kirby->panelLanguage(),
'role' => $role ?? $roles['options'][0]['value'] ?? null
'role' => $role ?: $roles['options'][0]['value'] ?? null
]
]
];
Expand Down

0 comments on commit 2591e8f

Please sign in to comment.