summaryrefslogtreecommitdiff
path: root/pages/edit_searchtimer.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/edit_searchtimer.ecpp')
-rw-r--r--pages/edit_searchtimer.ecpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/edit_searchtimer.ecpp b/pages/edit_searchtimer.ecpp
index fbd2cce..69103a1 100644
--- a/pages/edit_searchtimer.ecpp
+++ b/pages/edit_searchtimer.ecpp
@@ -10,6 +10,7 @@
#include "epgsearch.h"
#include "setup.h"
#include "i18n.h"
+#include "users.h"
using namespace std;
using namespace vdrlive;
@@ -99,6 +100,9 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
}>
<%cpp>
+ if (!cUser::CurrentUserHasRightTo(UR_EDITSTIMERS))
+ throw HtmlError( tr("Sorry, no permission. Please contact your administrator!") );
+
#define SELECTIF(x) reply.out() << ( (x) ? "selected=\"selected\"" : "" );
#define CHECKIF(x) reply.out() << ( (x) ? "checked=\"checked\"" : "" );