This commit is contained in:
Shish 2012-02-12 13:58:33 +00:00
parent 7ab867cc79
commit 6691681a3d

2
contrib/report_image/main.php Executable file → Normal file
View File

@ -52,7 +52,7 @@ class ReportImage extends Extension {
}
else if($event->get_arg(0) == "remove") {
if(isset($_POST['id'])) {
if($user->can("view_image_reort")) {
if($user->can("view_image_report")) {
send_event(new RemoveReportedImageEvent($_POST['id']));
$page->set_mode("redirect");
$page->set_redirect(make_link("image_report/list"));