mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +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,
|
// If any of the notification subscribers no longer have read access,
|
||||||
// remove their subscription.
|
// remove their subscription.
|
||||||
|
if (empty($this->_notifyList))
|
||||||
|
$this->getNotifyList();
|
||||||
foreach ($this->_notifyList["users"] as $u) {
|
foreach ($this->_notifyList["users"] as $u) {
|
||||||
if ($this->getAccessMode($u) < M_READ) {
|
if ($this->getAccessMode($u) < M_READ) {
|
||||||
$this->removeNotify($u->getID(), true);
|
$this->removeNotify($u->getID(), true);
|
||||||
|
@ -301,6 +303,8 @@ class LetoDMS_Core_Folder {
|
||||||
|
|
||||||
// If any of the notification subscribers no longer have read access,
|
// If any of the notification subscribers no longer have read access,
|
||||||
// remove their subscription.
|
// remove their subscription.
|
||||||
|
if (empty($this->_notifyList))
|
||||||
|
$this->getNotifyList();
|
||||||
foreach ($this->_notifyList["users"] as $u) {
|
foreach ($this->_notifyList["users"] as $u) {
|
||||||
if ($this->getAccessMode($u) < M_READ) {
|
if ($this->getAccessMode($u) < M_READ) {
|
||||||
$this->removeNotify($u->getID(), true);
|
$this->removeNotify($u->getID(), true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user