Name sync option

This commit is contained in:
Marcin Łojewski
2019-10-08 20:58:22 +02:00
parent a8e8e53538
commit 34a0c65be6
7 changed files with 58 additions and 15 deletions

View File

@@ -24,8 +24,8 @@ namespace OCA\UserSQL\Backend;
use OC\User\Backend;
use OCA\UserSQL\Action\EmailSync;
use OCA\UserSQL\Action\IUserAction;
use OCA\UserSQL\Action\QuotaSync;
use OCA\UserSQL\Action\NameSync;
use OCA\UserSQL\Action\QuotaSync;
use OCA\UserSQL\Cache;
use OCA\UserSQL\Constant\App;
use OCA\UserSQL\Constant\DB;
@@ -152,7 +152,8 @@ final class UserBackend extends ABackend implements
$this->userRepository
);
}
if (!empty($this->properties[DB::USER_NAME_COLUMN])
if (!empty($this->properties[Opt::NAME_SYNC])
&& !empty($this->properties[DB::USER_NAME_COLUMN])
) {
$this->actions[] = new NameSync(
$this->appName, $this->logger, $this->properties, $this->config,