mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
actually set owner notified user, not the logged in user, check if notified user has access on document not currently logged in user.
This commit is contained in:
parent
27d22771d7
commit
e3dea1073c
|
@ -123,11 +123,11 @@ class SeedDMS_Controller_AddDocument extends SeedDMS_Controller_Common {
|
|||
|
||||
/* Add a default notification for the owner of the document */
|
||||
if($settings->_enableOwnerNotification) {
|
||||
$res = $document->addNotify($user->getID(), true);
|
||||
$res = $document->addNotify($owner->getID(), true);
|
||||
}
|
||||
/* Check if additional notification shall be added */
|
||||
foreach($notificationusers as $notuser) {
|
||||
if($document->getAccessMode($user) >= M_READ)
|
||||
if($document->getAccessMode($notuser) >= M_READ)
|
||||
$res = $document->addNotify($notuser->getID(), true);
|
||||
}
|
||||
foreach($notificationgroups as $notgroup) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user