diff options
author | Marcin Łojewski <marcin.lojewski@mlojewski.me> | 2019-10-08 21:58:22 +0300 |
---|---|---|
committer | Marcin Łojewski <marcin.lojewski@mlojewski.me> | 2019-10-08 21:58:22 +0300 |
commit | 34a0c65be65ed0a7352c0bb2f2161e76df975cbb (patch) | |
tree | 0f518daa3565d2336d5ef5b5cc0948f482921acb /lib/Backend | |
parent | a8e8e535382201ce14dff39cab0b79f7068c6d88 (diff) |
Name sync option
Diffstat (limited to 'lib/Backend')
-rw-r--r-- | lib/Backend/UserBackend.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Backend/UserBackend.php b/lib/Backend/UserBackend.php index 99c860b..22dc213 100644 --- a/lib/Backend/UserBackend.php +++ b/lib/Backend/UserBackend.php @@ -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, |