diff -Naur live/pages/recordings.ecpp live_new/pages/recordings.ecpp --- live/pages/recordings.ecpp 2011-09-02 21:09:06.423999280 +0200 +++ live_new/pages/recordings.ecpp 2011-09-02 21:13:18.707999267 +0200 @@ -13,6 +13,7 @@ #include "tasks.h" #include "tools.h" #include "i18n.h" +#include "users.h" #include "recman.h" @@ -55,6 +56,8 @@ deleteResult = ""; if (!todel.empty()) { + if (!cUser::CurrentUserHasRightTo(UR_DELRECS)) + throw HtmlError( tr("Sorry, no permission. Please contact your administrator!") ); deletions.push_back(todel); } for (deletions_type::const_iterator it = deletions.begin(); it != deletions.end(); ++it) {