no author edit for anon
This commit is contained in:
parent
e14f9a8b39
commit
5238fdc13f
@ -413,10 +413,12 @@ class Artists implements Extension {
|
|||||||
|
|
||||||
public function add_author_field_to_image($event)
|
public function add_author_field_to_image($event)
|
||||||
{
|
{
|
||||||
|
global $user;
|
||||||
$artistName = $this->get_artistName_by_imageID($event->image->id);
|
$artistName = $this->get_artistName_by_imageID($event->image->id);
|
||||||
|
if(!$user->is_anonymous()) {
|
||||||
$event->add_part($this->theme->get_author_editor_html($artistName), 42);
|
$event->add_part($this->theme->get_author_editor_html($artistName), 42);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function get_artistName_by_imageID($imageID)
|
private function get_artistName_by_imageID($imageID)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user