do not set role when adding new user because the default is just fine

This commit is contained in:
Uwe Steinmann 2023-08-24 13:12:09 +02:00
parent 23b8e48831
commit b8c59fd264

View File

@ -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) {