summaryrefslogtreecommitdiff
path: root/pages/switch_channel.ecpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2009-09-08 21:08:54 (GMT)
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2009-09-08 21:08:54 (GMT)
commitfd1e4dad6f9ad3d95001b1785be3cfc56931fbe0 (patch)
tree481970923c38e41013a4f84d048acd0aba9fa053 /pages/switch_channel.ecpp
parent712a9120b4de6fd5fa349ed3e4c61b507553e638 (diff)
parent1a19a11081e56aff745ca0ba625187fabc54fb94 (diff)
downloadvdr-plugin-live-cvs-commit-366.tar.gz
vdr-plugin-live-cvs-commit-366.tar.bz2
Merge commit 'winni/master' into develcvs-commit-366
Diffstat (limited to 'pages/switch_channel.ecpp')
-rw-r--r--pages/switch_channel.ecpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/switch_channel.ecpp b/pages/switch_channel.ecpp
index 9b8b48b..2cffefc 100644
--- a/pages/switch_channel.ecpp
+++ b/pages/switch_channel.ecpp
@@ -3,6 +3,7 @@
#include "exception.h"
#include "tasks.h"
#include "tools.h"
+#include "users.h"
using namespace std;
using namespace vdrlive;
@@ -16,6 +17,9 @@ using namespace vdrlive;
bool ajaxReq = !async.empty() && (lexical_cast<int>(async) != 0);
string referrer;
+ if (!cUser::CurrentUserHasRightTo(UR_SWITCHCHNL))
+ throw HtmlError( tr("Sorry, no permission. Please contact your administrator!") );
+
if (ajaxReq) {
reply.setContentType( "application/xml" );
}