Skip to content
Snippets Groups Projects
Commit 62531145 authored by Viktoria Wiebe's avatar Viktoria Wiebe Committed by Elmar Ludwig
Browse files

biest #1072

Closes #1072

Merge request studip/studip!682
parent eb24dbc3
No related branches found
No related tags found
No related merge requests found
......@@ -445,13 +445,6 @@ class ResourceBooking extends SimpleORMap implements PrivacyObject, Studip\Calen
);
}
if ((!$this->booking_user_id) || !($this->booking_user instanceof User)) {
/*throw new InvalidArgumentException(
_('Die buchende Person wurde nicht gesetzt!')
);*/
$this->booking_user = User::findCurrent();
}
if ($this->begin >= $this->end) {
throw new InvalidArgumentException(
_('Der Startzeitpunkt darf nicht hinter dem Endzeitpunkt liegen!')
......@@ -471,6 +464,9 @@ class ResourceBooking extends SimpleORMap implements PrivacyObject, Studip\Calen
}
}
// update the booking user
$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