diff --git a/SeedDMS_Core/Core/inc.ClassDMS.php b/SeedDMS_Core/Core/inc.ClassDMS.php index b9c5e8f18..7d80a00d0 100644 --- a/SeedDMS_Core/Core/inc.ClassDMS.php +++ b/SeedDMS_Core/Core/inc.ClassDMS.php @@ -2846,7 +2846,7 @@ class SeedDMS_Core_DMS { * @param null $homefolder * @return bool|SeedDMS_Core_User */ - function addUser($login, $pwd, $fullName, $email, $language, $theme, $comment, $role='0', $isHidden=0, $isDisabled=0, $pwdexpiration='', $quota=0, $homefolder=null) { /* {{{ */ + function addUser($login, $pwd, $fullName, $email, $language, $theme, $comment, $role='3', $isHidden=0, $isDisabled=0, $pwdexpiration='', $quota=0, $homefolder=null) { /* {{{ */ $db = $this->db; if (is_object($this->getUserByLogin($login))) { return false; @@ -2854,7 +2854,7 @@ class SeedDMS_Core_DMS { if(is_object($role)) $role = $role->getID(); elseif($role == '') - $role = '0'; + $role = '3'; if(trim($pwdexpiration) == '' || trim($pwdexpiration) == 'never') { $pwdexpiration = 'NULL'; } elseif(trim($pwdexpiration) == 'now') {