diff --git a/cps/templates/shelf.html b/cps/templates/shelf.html
index c6c117346..aaecdf9c9 100644
--- a/cps/templates/shelf.html
+++ b/cps/templates/shelf.html
@@ -2,7 +2,7 @@
{% block body %}
{{title}}
- {% if g.user.is_authenticated() %}
+ {% if g.user.is_authenticated %}
{% if (g.user.role_edit_shelfs() and shelf.is_public ) or not shelf.is_public %}
{{ _('Delete this Shelf') }}
{{ _('Edit Shelf name') }}