mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +00:00
do not clean notify list in setDefaultAccess() if rights are inherited
This commit is contained in:
parent
7ba418f25a
commit
228b891e3a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user