From 4cf240cb6faa33f1e51d1040ee6162f245525f8f Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Mon, 7 Sep 2009 19:13:48 +0200 Subject: new user management within setup that also handles different user rights --- pages/edit_timer.ecpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pages/edit_timer.ecpp') 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(async) != 0); tChannelID channelid = tChannelID(); -- cgit v1.2.3