value for _inheritAccess are true or false

This commit is contained in:
Uwe Steinmann 2022-02-21 13:26:57 +01:00
parent 375c68e8de
commit c945829b80

View File

@ -218,7 +218,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
$this->_expires = $expires; $this->_expires = $expires;
$this->_ownerID = $ownerID; $this->_ownerID = $ownerID;
$this->_folderID = $folderID; $this->_folderID = $folderID;
$this->_inheritAccess = $inheritAccess; $this->_inheritAccess = $inheritAccess ? true : false;
$this->_defaultAccess = $defaultAccess; $this->_defaultAccess = $defaultAccess;
$this->_locked = ($locked == null || $locked == '' ? -1 : $locked); $this->_locked = ($locked == null || $locked == '' ? -1 : $locked);
$this->_keywords = $keywords; $this->_keywords = $keywords;
@ -804,7 +804,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
if (!$db->getResult($queryStr)) if (!$db->getResult($queryStr))
return false; return false;
$this->_inheritAccess = ($inheritAccess ? "1" : "0"); $this->_inheritAccess = ($inheritAccess ? true : false);
if(!$noclean) if(!$noclean)
$this->cleanNotifyList(); $this->cleanNotifyList();