mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +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')));
|
||||
} 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')));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user