Skip to content

Commit

Permalink
User create dialog: Fix role default
Browse files Browse the repository at this point in the history
Fixes #6801
  • Loading branch information
distantnative committed Nov 20, 2024
1 parent 6adc851 commit e419d79
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 e419d79

Please sign in to comment.