Skip to content

Commit

Permalink
Match the owner selection on create server (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
notAreYouScared authored Jan 18, 2025
1 parent 03eaddb commit 7e6769c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use App\Models\Mount;
use App\Models\Server;
use App\Models\ServerVariable;
use App\Models\User;
use App\Services\Databases\DatabaseManagementService;
use App\Services\Eggs\EggChangerService;
use App\Services\Servers\RandomWordService;
Expand Down Expand Up @@ -105,7 +106,8 @@ public function form(Form $form): Form
'lg' => 2,
])
->relationship('user', 'username')
->searchable()
->searchable(['username', 'email'])
->getOptionLabelFromRecordUsing(fn (User $user) => "$user->email | $user->username " . ($user->isRootAdmin() ? '(admin)' : ''))
->preload()
->required(),

Expand Down

0 comments on commit 7e6769c

Please sign in to comment.