diff options
author | Jake Nabasny <jake@nabasny.com> | 2023-11-28 11:01:52 -0500 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2024-05-30 12:01:13 +0200 |
commit | f863290572ff91d9a8a8d6cb2ad819964c3a1426 (patch) | |
tree | 389883fb9a18bdb2dbcd466bd0f46fe9ff7b82b8 /lib/private/Accounts | |
parent | 57a7f09a722c384cb3940c19ed2d00d5b9ec925c (diff) | |
download | nextcloud-server-f863290572ff91d9a8a8d6cb2ad819964c3a1426.tar.gz nextcloud-server-f863290572ff91d9a8a8d6cb2ad819964c3a1426.zip |
feat(ldap): sync additional properties to profile and SAB
Synced from LDAP to profile:
- Date of birth
Synced from LDAP to SAB (via the profile):
- Biography
- Date of birth
Original code by Jake Nabasny (GitHub: @slapcat)
Co-authored-by: Jake Nabasny <jake@nabasny.com>
Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud>
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'lib/private/Accounts')
-rw-r--r-- | lib/private/Accounts/AccountManager.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php index de8663f99a6..cc81a852cdf 100644 --- a/lib/private/Accounts/AccountManager.php +++ b/lib/private/Accounts/AccountManager.php @@ -76,6 +76,7 @@ class AccountManager implements IAccountManager { self::PROPERTY_ROLE => self::SCOPE_LOCAL, self::PROPERTY_HEADLINE => self::SCOPE_LOCAL, self::PROPERTY_BIOGRAPHY => self::SCOPE_LOCAL, + self::PROPERTY_BIRTHDATE => self::SCOPE_LOCAL, ]; public function __construct( @@ -669,6 +670,12 @@ class AccountManager implements IAccountManager { ], [ + 'name' => self::PROPERTY_BIRTHDATE, + 'value' => '', + 'scope' => $scopes[self::PROPERTY_BIRTHDATE], + ], + + [ 'name' => self::PROPERTY_PROFILE_ENABLED, 'value' => $this->isProfileEnabledByDefault($this->config) ? '1' : '0', ], |