if image replacement is unwanted, don't allow users to replace images

This commit is contained in:
Shish
2012-03-19 11:07:13 +00:00
parent 87c59ead29
commit 1a34557da7
2 changed files with 1 additions and 8 deletions

View File

@ -201,7 +201,7 @@ class ImageIO extends Extension {
$event->add_part($this->theme->get_deleter_html($event->image->id));
}
/* In the future, could perhaps allow users to replace images that they own as well... */
if ($user->can("replace_image") && $config->get_bool("upload_replace")) {
if ($user->can("replace_image")) {
$event->add_part($this->theme->get_replace_html($event->image->id));
}
}