summaryrefslogtreecommitdiff
path: root/pages/vlc.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/vlc.ecpp')
-rw-r--r--pages/vlc.ecpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/pages/vlc.ecpp b/pages/vlc.ecpp
index 445cc94..065969c 100644
--- a/pages/vlc.ecpp
+++ b/pages/vlc.ecpp
@@ -4,6 +4,7 @@
#include <vdr/keys.h>
#include "setup.h"
#include "tools.h"
+#include "users.h"
using namespace std;
using namespace vdrlive;
@@ -23,6 +24,8 @@ using namespace vdrlive;
<%include>page_init.eh</%include>
<%cpp>
if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
+ if (!cUser::CurrentUserHasRightTo(UR_STARTREPLAY))
+ throw HtmlError( tr("Sorry, no permission. Please contact your administrator!") );
bool asyncReq = !async.empty() && (lexical_cast<int>(async) != 0);