no author edit for anon

This commit is contained in:
Shish 2010-03-11 13:33:44 +00:00
parent e14f9a8b39
commit 5238fdc13f

View File

@ -413,9 +413,11 @@ class Artists implements Extension {
public function add_author_field_to_image($event)
{
global $user;
$artistName = $this->get_artistName_by_imageID($event->image->id);
$event->add_part($this->theme->get_author_editor_html($artistName), 42);
if(!$user->is_anonymous()) {
$event->add_part($this->theme->get_author_editor_html($artistName), 42);
}
}
private function get_artistName_by_imageID($imageID)