summaryrefslogtreecommitdiff
path: root/pages/timers.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/timers.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/timers.ecpp')
-rw-r--r--pages/timers.ecpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/pages/timers.ecpp b/pages/timers.ecpp
index 93d2e91..2a9ee4c 100644
--- a/pages/timers.ecpp
+++ b/pages/timers.ecpp
@@ -8,6 +8,7 @@
#include "epg_events.h"
#include "timerconflict.h"
#include "livefeatures.h"
+#include "users.h"
using namespace std;
using namespace vdrlive;
@@ -44,6 +45,8 @@ static const size_t maximumDescriptionLength = 300;
if ( timer == 0 )
throw HtmlError( tr("Couldn't find timer. Maybe you mistyped your request?") );
if (action == "delete") {
+ if (!cUser::CurrentUserHasRightTo(UR_DELTIMERS))
+ throw HtmlError( tr("Sorry, no permission. Please contact your administrator!") );
LiveTimerManager().DelTimer(timer);
timerNotifier.SetTimerModification();
}