From b8c59fd264b2d9a3b27898cfc291fc15417818cf Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 24 Aug 2023 13:12:09 +0200 Subject: [PATCH] do not set role when adding new user because the default is just fine --- inc/inc.ClassLdapAuthentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/inc.ClassLdapAuthentication.php b/inc/inc.ClassLdapAuthentication.php index 34217c890..026e29d27 100644 --- a/inc/inc.ClassLdapAuthentication.php +++ b/inc/inc.ClassLdapAuthentication.php @@ -29,7 +29,7 @@ class SeedDMS_LdapAuthentication extends SeedDMS_Authentication { var $settings; protected function addUser($username, $info) { - return $this->dms->addUser($username, null, $info['cn'][0], $info['mail'][0], $settings->_language, $settings->_theme, "", 0); + return $this->dms->addUser($username, null, $info['cn'][0], isset($info['mail']) ? $info['mail'][0] : '', $this->settings->_language, $this->settings->_theme, ""); } protected function updateUser($user, $info) {