Skip to content
Snippets Groups Projects
Commit 4523edd7 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

set booking user to current user if resource booking is changed or if the user...

set booking user to current user if resource booking is changed or if the user is invalid, fixes #1220

Closes #1220

Merge request studip/studip!729
parent 141bcdf4
No related branches found
No related tags found
No related merge requests found
......@@ -466,8 +466,10 @@ class ResourceBooking extends SimpleORMap implements PrivacyObject, Studip\Calen
}
// update the booking user
$this->booking_user = User::findCurrent();
if (!$this->isNew() || !$this->booking_user_id) {
$this->booking_user = User::findCurrent();
}
//Check if the user has booking rights on the resource.
//The user must have either permanent permissions or they have to
//have booking rights by a temporary permission in this moment
......
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