Skip to content

Commit

Permalink
fix error on console command creating new user without admin rights
Browse files Browse the repository at this point in the history
  • Loading branch information
ToukL authored Jan 29, 2024
1 parent c62ac9e commit 13641e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Console/Commands/NewUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public function handle()

if ($this->confirm('Should the user be global admin? [y|N]')) {
$u->role_id = Role::adminId();
} else {
$u->role_id = Role::editorId();
}

if ($this->confirm('Do you wish to auto-generate a password? [y|N]')) {
Expand Down

0 comments on commit 13641e4

Please sign in to comment.