diff --git a/apps/calendar/import.php b/apps/calendar/import.php
index e31d8bbdc6f584cea9da733553fc0fe32a3a9f22..46822349448cdc20a011aba341b7d70944a83a30 100644
--- a/apps/calendar/import.php
+++ b/apps/calendar/import.php
@@ -7,7 +7,7 @@
  */
 
 require_once ('../../lib/base.php');
-//OC_JSON::checkLoggedIn();
+OC_JSON::checkLoggedIn();
 OC_Util::checkAppEnabled('calendar');
 
 if($_GET["import"] == "existing"){