From 5ea46d81bb5fff84e8676cf5d7a059edb6271bc1 Mon Sep 17 00:00:00 2001 From: Marc Hefter Date: Fri, 10 Mar 2023 10:56:16 +0100 Subject: nice up the code handling AccountManager MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit merging defaultScopes from DEFAULT_SCOPES and account_manager.default_property_scope removing unneccessary profileScope setting (using config.php instead) honoring admin choice 'profile.enabled'=>false in config.php moved checking for empty array to updateProfile function corrected some typos and cleaned some comments Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marc Hefter --- apps/user_ldap/js/wizard/wizardTabAdvanced.js | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'apps/user_ldap/js') diff --git a/apps/user_ldap/js/wizard/wizardTabAdvanced.js b/apps/user_ldap/js/wizard/wizardTabAdvanced.js index 5b247294473..a438b847401 100644 --- a/apps/user_ldap/js/wizard/wizardTabAdvanced.js +++ b/apps/user_ldap/js/wizard/wizardTabAdvanced.js @@ -163,10 +163,6 @@ OCA = OCA || {}; $element: $('#ldap_attr_biography'), setMethod: 'setBiographyAttribute' }, - ldap_profile_scope: { - $element: $('#ldap_profile_scope'), - setMethod: 'setProfileScope' - }, }; this.setManagedItems(items); }, @@ -489,15 +485,6 @@ OCA = OCA || {}; this.setElementValue(this.managedItems.ldap_attr_biography.$element, attribute); }, - /** - * sets the visibility scope for the Nextcloud user profile properties - * - * @param {string} scope - */ - setProfileScope: function(scope) { - this.setElementValue(this.managedItems.ldap_profile_scope.$element, scope); - }, - /** * deals with the result of the Test Connection test * -- cgit v1.2.3