Skip to content
Snippets Groups Projects
Commit b7deb6ce authored by André Noack's avatar André Noack
Browse files

do not notify user when deleting her own booking, closes #62

parent 39a73bb0
No related branches found
No related tags found
No related merge requests found
...@@ -1865,6 +1865,9 @@ class ResourceBooking extends SimpleORMap implements PrivacyObject, Studip\Calen ...@@ -1865,6 +1865,9 @@ class ResourceBooking extends SimpleORMap implements PrivacyObject, Studip\Calen
//Nothing we can do here. //Nothing we can do here.
return; return;
} }
if (User::findCurrent()->id === $booking_user->id) {
return;
}
$template_factory = new Flexi_TemplateFactory( $template_factory = new Flexi_TemplateFactory(
$GLOBALS['STUDIP_BASE_PATH'] . '/locale/' $GLOBALS['STUDIP_BASE_PATH'] . '/locale/'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment