send notification when document access changes

This commit is contained in:
Uwe Steinmann 2023-08-31 14:19:52 +02:00
parent b66f05142f
commit a7d4b786a2

View File

@ -176,10 +176,19 @@ else if ($action == "setdefault") {
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_set_default_access')));
} elseif($action == "delaccess") {
if($notifier) {
$notifier->sendChangedDocumentAccessMail($document, $user);
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_delete_access')));
} elseif($action == "addaccess") {
if($notifier) {
$notifier->sendChangedDocumentAccessMail($document, $user);
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_add_access')));
} elseif($action == "editaccess") {
if($notifier) {
$notifier->sendChangedDocumentAccessMail($document, $user);
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_edit_access')));
}