aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoackorama <noackorama@gmail.com>2021-08-11 18:59:35 +0200
committernoackorama <noackorama@gmail.com>2021-08-11 18:59:35 +0200
commitb7deb6cebb57fda85e31d3c605d99f69e19a7587 (patch)
tree7c155106e9c558ddec44388d7e6da6c0a3dd840a
parent39a73bb00a66f501de573894ac481ef510938d10 (diff)
do not notify user when deleting her own booking, closes #62
-rw-r--r--lib/models/resources/ResourceBooking.class.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/models/resources/ResourceBooking.class.php b/lib/models/resources/ResourceBooking.class.php
index ad22cef..1d53178 100644
--- a/lib/models/resources/ResourceBooking.class.php
+++ b/lib/models/resources/ResourceBooking.class.php
@@ -1865,6 +1865,9 @@ class ResourceBooking extends SimpleORMap implements PrivacyObject, Studip\Calen
//Nothing we can do here.
return;
}
+ if (User::findCurrent()->id === $booking_user->id) {
+ return;
+ }
$template_factory = new Flexi_TemplateFactory(
$GLOBALS['STUDIP_BASE_PATH'] . '/locale/'