mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
- get notifyList before using it
This commit is contained in:
parent
93e293f904
commit
643d1d7920
|
@ -272,6 +272,8 @@ class LetoDMS_Core_Folder {
|
|||
|
||||
// If any of the notification subscribers no longer have read access,
|
||||
// remove their subscription.
|
||||
if (empty($this->_notifyList))
|
||||
$this->getNotifyList();
|
||||
foreach ($this->_notifyList["users"] as $u) {
|
||||
if ($this->getAccessMode($u) < M_READ) {
|
||||
$this->removeNotify($u->getID(), true);
|
||||
|
@ -301,6 +303,8 @@ class LetoDMS_Core_Folder {
|
|||
|
||||
// If any of the notification subscribers no longer have read access,
|
||||
// remove their subscription.
|
||||
if (empty($this->_notifyList))
|
||||
$this->getNotifyList();
|
||||
foreach ($this->_notifyList["users"] as $u) {
|
||||
if ($this->getAccessMode($u) < M_READ) {
|
||||
$this->removeNotify($u->getID(), true);
|
||||
|
|
Loading…
Reference in New Issue
Block a user