diff --git a/src/Twig/Runtime.php b/src/Twig/Runtime.php index b61086f5b0..d1d0022505 100644 --- a/src/Twig/Runtime.php +++ b/src/Twig/Runtime.php @@ -60,11 +60,6 @@ class Runtime implements RuntimeExtensionInterface, EventSubscriberInterface public function getNoteActions(Note $note) { - // Only show buttons if a user is logged in - if (Common::user() == null) { - return []; - } - $actions = []; Event::handle('add_note_actions', [$this->request, $note, &$actions]); return $actions; diff --git a/templates/network/public.html.twig b/templates/network/public.html.twig index 5b1a5a9cef..ca04206903 100644 --- a/templates/network/public.html.twig +++ b/templates/network/public.html.twig @@ -92,7 +92,7 @@ {% if notes is defined and notes is not empty %} {% for note in notes %} {% set id = note.getId() - 1 %} - {% include '/note/view.html.twig' with {'note': note} only %} + {% include '/note/view.html.twig' with {'note': note, 'have_user': have_user} only %} {% endfor %} {% else %}