diff --git a/lib/models/resources/ResourceBooking.class.php b/lib/models/resources/ResourceBooking.class.php index 548f86d52bc8bb60aed78a7149557944bc4e1628..58c8ecb09c34eebc959d24d5f85aa6e97507bb4d 100644 --- a/lib/models/resources/ResourceBooking.class.php +++ b/lib/models/resources/ResourceBooking.class.php @@ -465,8 +465,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