summaryrefslogtreecommitdiff
path: root/pages/whats_on.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/whats_on.ecpp')
-rw-r--r--pages/whats_on.ecpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/pages/whats_on.ecpp b/pages/whats_on.ecpp
index e24aca5..daf09d4 100644
--- a/pages/whats_on.ecpp
+++ b/pages/whats_on.ecpp
@@ -15,8 +15,13 @@ using namespace vdrlive;
<%args>
type = "now";
</%args>
+<%session scope="global">
+bool logged_in(false);
+</%session>
<%include>page_init.eh</%include>
<{
+if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
+
cSchedulesLock schedulesLock;
const cSchedules* Schedules = cSchedules::Schedules(schedulesLock);