Skip to content

Commit

Permalink
Fix issue where role_id is unassigned when using create:user command
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers committed Jul 23, 2024
1 parent fb719f4 commit 668f371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/backend/console/UserCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function handle(): int
'first_name' => $this->option('fname') ?: $this->ask('First name', ''),
'last_name' => $this->option('lname') ?: $this->ask('Last name', ''),
'role_id' => (
$role = UserRole::where(
UserRole::where(
'code',
$this->option('role') ?: $this->choice(
'Role',
Expand Down

0 comments on commit 668f371

Please sign in to comment.