summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/settings.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-12-17 14:46:57 +0100
committerFrank Karlitschek <frank@owncloud.org>2012-12-17 14:46:57 +0100
commitc4ecbad0099c31611155e4712f2cac2b9ced26a4 (patch)
tree0ae9d5969a2ea5cd2de3b0f22f094aa3c92e5ead /apps/user_ldap/settings.php
parente16be33384e49276ef9b483b6c8f667ad688e372 (diff)
downloadnextcloud-server-c4ecbad0099c31611155e4712f2cac2b9ced26a4.tar.gz
nextcloud-server-c4ecbad0099c31611155e4712f2cac2b9ced26a4.zip
check if admin
Diffstat (limited to 'apps/user_ldap/settings.php')
-rw-r--r--apps/user_ldap/settings.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/settings.php b/apps/user_ldap/settings.php
index 2ee936d29a8..58ec8e7f7a4 100644
--- a/apps/user_ldap/settings.php
+++ b/apps/user_ldap/settings.php
@@ -20,6 +20,9 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
+OC_Util::checkAdminUser();
+
$params = array('ldap_host', 'ldap_port', 'ldap_dn', 'ldap_agent_password', 'ldap_base', 'ldap_base_users', 'ldap_base_groups', 'ldap_userlist_filter', 'ldap_login_filter', 'ldap_group_filter', 'ldap_display_name', 'ldap_group_display_name', 'ldap_tls', 'ldap_turn_off_cert_check', 'ldap_nocase', 'ldap_quota_def', 'ldap_quota_attr', 'ldap_email_attr', 'ldap_group_member_assoc_attribute', 'ldap_cache_ttl', 'home_folder_naming_rule');
OCP\Util::addscript('user_ldap', 'settings');