From a7d4b786a2f3b0c44bbd615517b54d47afdd190d Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 31 Aug 2023 14:19:52 +0200 Subject: [PATCH] send notification when document access changes --- op/op.DocumentAccess.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/op/op.DocumentAccess.php b/op/op.DocumentAccess.php index 6fc483123..009f62fac 100644 --- a/op/op.DocumentAccess.php +++ b/op/op.DocumentAccess.php @@ -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'))); }