mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
set quota when creating new user (Closes #285)
This commit is contained in:
parent
5003c54deb
commit
4d7323177d
|
@ -68,12 +68,9 @@ if ($action == "adduser") {
|
|||
UI::exitError(getMLText("admin_tools"),getMLText("user_exists"));
|
||||
}
|
||||
|
||||
$newUser = $dms->addUser($login, md5($pwd), $name, $email, $settings->_language, $settings->_theme, $comment, $role, $isHidden, $isDisabled, $pwdexpiration, $homefolder);
|
||||
$newUser = $dms->addUser($login, md5($pwd), $name, $email, $settings->_language, $settings->_theme, $comment, $role, $isHidden, $isDisabled, $pwdexpiration, $quota, $homefolder);
|
||||
if ($newUser) {
|
||||
|
||||
/* Set Quota */
|
||||
$newUser->setQuota($quota);
|
||||
|
||||
/* Set user image if uploaded */
|
||||
if (isset($_FILES["userfile"]) && is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["size"] > 0 && $_FILES['userfile']['error']==0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user