summaryrefslogtreecommitdiff
path: root/pages/play_recording.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/play_recording.ecpp')
-rw-r--r--pages/play_recording.ecpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/pages/play_recording.ecpp b/pages/play_recording.ecpp
index 5a26b41..1f018de 100644
--- a/pages/play_recording.ecpp
+++ b/pages/play_recording.ecpp
@@ -5,6 +5,7 @@
#include "setup.h"
#include "tasks.h"
#include "tools.h"
+#include "users.h"
using namespace std;
using namespace vdrlive;
@@ -18,6 +19,8 @@ using namespace vdrlive;
</%session>
<%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!") );
reply.setContentType( "application/xml" );
PlayRecordingTask task( param );