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

Merge branch 'biest_62' into 'main'

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

Closes #62

See merge request studip/studip!15
parents 39a73bb0 b7deb6ce
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