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

Commit fe59330

Browse files
committed
Use default configured limitation filter
1 parent 9a667b3 commit fe59330

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Commands/Import.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function handle()
4343

4444
$search = $adldap->search()->users();
4545

46-
if ($filter = $this->option('filter')) {
46+
if ($filter = $this->getFilter()) {
4747
// If the filter option was given, we'll
4848
// insert it into our search query.
4949
$search->rawFilter($filter);
@@ -115,6 +115,16 @@ public function isLogging()
115115
return $this->option('log') == 'true';
116116
}
117117

118+
/**
119+
* Returns the limitation filter for importing users.
120+
*
121+
* @return string
122+
*/
123+
public function getFilter()
124+
{
125+
return $this->getLimitationFilter() ?: $this->option('filter');
126+
}
127+
118128
/**
119129
* Get the console command arguments.
120130
*

0 commit comments

Comments
 (0)