Project

General

Profile

Bug #1317 » delrights.patch

Anonymous, 03/27/2013 01:14 PM

View differences:

vdr-plugin-live/pages/recordings.ecpp 2013-03-27 13:01:18.000000000 +0100
deletions.push_back(todel);
}
for (deletions_type::const_iterator it = deletions.begin(); it != deletions.end(); ++it) {
RemoveRecordingTask task(*it);
LiveTaskManager().Execute(task);
if (!task.Result())
deleteResult += string() + tr("ERROR:") + " " + task.Error() + "<br/>";
else
deleteResult += string() + tr("Deleted recording:") + " " + StringReplace(task.RecName(), "~", "/") + "<br/>";
if (cUser::CurrentUserHasRightTo(UR_DELRECS))
{
RemoveRecordingTask task(*it);
LiveTaskManager().Execute(task);
if (!task.Result())
deleteResult += string() + tr("ERROR:") + " " + task.Error() + "<br/>";
else
deleteResult += string() + tr("Deleted recording:") + " " + StringReplace(task.RecName(), "~", "/") + "<br/>";
}
else
{
throw HtmlError( tr("Sorry, no permission. Please contact your administrator!") );
}
}
deletions.clear();
    (1-1/1)