aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/resources/booking.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/resources/booking.php b/app/controllers/resources/booking.php
index a9aeaf1..8f0a555 100644
--- a/app/controllers/resources/booking.php
+++ b/app/controllers/resources/booking.php
@@ -1533,6 +1533,8 @@ class Resources_BookingController extends AuthenticatedController
}
}
+ $this->is_resource_admin = $this->resources[0]->userHasPermission(User::findCurrent(), 'admin');
+
$this->booking_type = $booking_type ?: Request::int('booking_type');
$this->addEditHandler('add');