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_searchtimer.ecpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pages/edit_searchtimer.ecpp') 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\"" : "" ); -- cgit v1.2.3