summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js/wizard
diff options
context:
space:
mode:
authorMarc Hefter <marchefter@march42.net>2022-05-17 18:05:37 +0200
committerMarc Hefter <marchefter@gmail.com>2023-04-06 08:20:22 +0200
commiteee0275dc5b3cfec8f1470bf9efca357e7d3ca68 (patch)
treeb297b53403033cfb741ebb502f42144894258f61 /apps/user_ldap/js/wizard
parent2315c177261a03a2047f9ba3d11dd96da4fef840 (diff)
downloadnextcloud-server-eee0275dc5b3cfec8f1470bf9efca357e7d3ca68.tar.gz
nextcloud-server-eee0275dc5b3cfec8f1470bf9efca357e7d3ca68.zip
added user profile scope setting
Signed-off-by: Marc Hefter <marchefter@march42.net> Signed-off-by: Marc Hefter <marchefter@gmail.com>
Diffstat (limited to 'apps/user_ldap/js/wizard')
-rw-r--r--apps/user_ldap/js/wizard/wizardTabAdvanced.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabAdvanced.js b/apps/user_ldap/js/wizard/wizardTabAdvanced.js
index d2c3b6d125d..031f2bf2a9d 100644
--- a/apps/user_ldap/js/wizard/wizardTabAdvanced.js
+++ b/apps/user_ldap/js/wizard/wizardTabAdvanced.js
@@ -159,6 +159,10 @@ OCA = OCA || {};
$element: $('#ldap_attr_biography'),
setMethod: 'setBiographyAttribute'
},
+ ldap_profile_scope: {
+ $element: $('#ldap_profile_scope'),
+ setMethod: 'setProfileScope'
+ },
};
this.setManagedItems(items);
},
@@ -473,6 +477,15 @@ OCA = OCA || {};
},
/**
+ * 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
*
* @param {WizardTabAdvanced} view