summaryrefslogtreecommitdiff
path: root/pages/edit_timer.ecpp
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-09-07 19:13:48 +0200
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-09-07 19:13:48 +0200
commit4cf240cb6faa33f1e51d1040ee6162f245525f8f (patch)
tree477ccddccc832dff245fc1590d7a52fbd59f59b5 /pages/edit_timer.ecpp
parentac835e1d5366908e0c3a706ed3c9298041c4bad9 (diff)
downloadvdr-plugin-live-4cf240cb6faa33f1e51d1040ee6162f245525f8f.tar.gz
vdr-plugin-live-4cf240cb6faa33f1e51d1040ee6162f245525f8f.tar.bz2
new user management within setup that also handles different user rights
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();