summaryrefslogtreecommitdiff
path: root/pages/edit_timer.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/edit_timer.ecpp')
-rw-r--r--pages/edit_timer.ecpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/edit_timer.ecpp b/pages/edit_timer.ecpp
index 47a6766..299f35a 100644
--- a/pages/edit_timer.ecpp
+++ b/pages/edit_timer.ecpp
@@ -13,6 +13,7 @@
#include "i18n.h"
#include "livefeatures.h"
#include "epgsearch.h"
+#include "users.h"
using namespace std;
using namespace vdrlive;
@@ -57,6 +58,9 @@ cTimer* timer;
<%cpp>
if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
+ if (!cUser::CurrentUserHasRightTo(UR_EDITTIMERS))
+ throw HtmlError( tr("Sorry, no permission. Please contact your administrator!") );
+
bool ajaxReq = !async.empty() && (lexical_cast<int>(async) != 0);
tChannelID channelid = tChannelID();