mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
send notification when document access changes
This commit is contained in:
parent
b66f05142f
commit
a7d4b786a2
|
@ -176,10 +176,19 @@ else if ($action == "setdefault") {
|
||||||
}
|
}
|
||||||
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_set_default_access')));
|
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_set_default_access')));
|
||||||
} elseif($action == "delaccess") {
|
} elseif($action == "delaccess") {
|
||||||
|
if($notifier) {
|
||||||
|
$notifier->sendChangedDocumentAccessMail($document, $user);
|
||||||
|
}
|
||||||
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_delete_access')));
|
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_delete_access')));
|
||||||
} elseif($action == "addaccess") {
|
} elseif($action == "addaccess") {
|
||||||
|
if($notifier) {
|
||||||
|
$notifier->sendChangedDocumentAccessMail($document, $user);
|
||||||
|
}
|
||||||
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_add_access')));
|
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_add_access')));
|
||||||
} elseif($action == "editaccess") {
|
} elseif($action == "editaccess") {
|
||||||
|
if($notifier) {
|
||||||
|
$notifier->sendChangedDocumentAccessMail($document, $user);
|
||||||
|
}
|
||||||
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_edit_access')));
|
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_edit_access')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user