do not clean notify list in setDefaultAccess() if rights are inherited

This commit is contained in:
Uwe Steinmann 2021-10-02 07:25:48 +02:00
parent 7ba418f25a
commit 228b891e3a

View File

@ -746,7 +746,11 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
$this->_defaultAccess = $mode;
if(!$noclean)
/* Setting the default access mode does not have any effect if access
* is still inherited. In that case there is no need to clean the
* notification list.
*/
if(!$noclean && !$this->_inheritAccess)
$this->cleanNotifyList();
return true;