fix clearing home folder of user

This commit is contained in:
Uwe Steinmann 2020-12-18 10:05:04 +01:00
parent f6af24c2ab
commit ead4ad45e7
2 changed files with 3 additions and 1 deletions

View File

@ -618,7 +618,8 @@ class SeedDMS_Core_User { /* {{{ */
$db = $this->_dms->getDB();
$homefolder = intval($homefolder);
$queryStr = "UPDATE `tblUsers` SET `homefolder` = " . ($homefolder ? $homefolder : NULL) . " WHERE `id` = " . $this->_id;
$queryStr = "UPDATE `tblUsers` SET `homefolder` = " . ($homefolder ? $homefolder : 'NULL') . " WHERE `id` = " . $this->_id;
echo $queryStr;
if (!$db->getResult($queryStr))
return false;

View File

@ -28,6 +28,7 @@
- pass attribute value to callback 'onAttributeValidate'
- new paramter 'new' of methode SeedDMЅ_Core_AttributeDefinition::validate()
- check if folder/document is below rootDir can be turned on (default off)
- SeedDMS_Core_User::setHomeFolder() can be used to unset the home folder
</notes>
<contents>
<dir baseinstalldir="SeedDMS" name="/">