Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 26fb35e

Browse files
committed
Only determine the model when the config model is empty
1 parent e540d3f commit 26fb35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/Console/Import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ protected function delete(User $user, Model $model)
309309
*/
310310
protected function model() : Model
311311
{
312-
$model = $this->option('model') ?? Config::get('ldap_auth.model', $this->determineModel());
312+
$model = $this->option('model') ?? Config::get('ldap_auth.model') ?: $this->determineModel();
313313

314314
return new $model;
315315
}

0 commit comments

Comments
 (0)