aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/resources/ajax.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/resources/ajax.php b/app/controllers/resources/ajax.php
index 8b771b3..a594b11 100644
--- a/app/controllers/resources/ajax.php
+++ b/app/controllers/resources/ajax.php
@@ -14,6 +14,17 @@
class Resources_AjaxController extends AuthenticatedController
{
+ protected $allow_nobody = true;
+
+ public function before_filter(&$action, &$args)
+ {
+ if ($action !== 'get_booking_plan') {
+ throw new LoginException();
+ }
+
+ parent::before_filter($action, $args);
+ }
+
public function toggle_marked_action($request_id)
{
$request = ResourceRequest::find($request_id);