summaryrefslogtreecommitdiff
path: root/pages/searchtimers.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/searchtimers.ecpp')
-rw-r--r--pages/searchtimers.ecpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/pages/searchtimers.ecpp b/pages/searchtimers.ecpp
index fc2eaf8..dc8bc53 100644
--- a/pages/searchtimers.ecpp
+++ b/pages/searchtimers.ecpp
@@ -4,6 +4,7 @@
#include "epgsearch.h"
#include "tools.h"
#include "setup.h"
+#include "users.h"
using namespace vdrlive;
using namespace std;
@@ -27,8 +28,11 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
if ( !searchtimerid.empty() ) {
if (action == "toggle")
timers.ToggleActive(searchtimerid);
- if (action == "delete")
+ if (action == "delete") {
+ if (!cUser::CurrentUserHasRightTo(UR_DELSTIMERS))
+ throw HtmlError( tr("Sorry, no permission. Please contact your administrator!") );
timers.Delete(searchtimerid);
+ }
}
if (action == "update")
timers.TriggerUpdate();