diff --git a/plinth/templates/index.html b/plinth/templates/index.html index 54124bfb3..e8ee92605 100644 --- a/plinth/templates/index.html +++ b/plinth/templates/index.html @@ -76,7 +76,7 @@ {% endfor %}
- {% if user.is_authenticated and configure_url %} + {% if user.is_authenticated and user_is_admin and configure_url %} diff --git a/plinth/views.py b/plinth/views.py index 46fe491e3..437a0d211 100644 --- a/plinth/views.py +++ b/plinth/views.py @@ -50,7 +50,8 @@ def index(request): 'selected_id': selection, 'details': details, 'details_label': details_label, - 'configure_url': configure_url }) + 'configure_url': configure_url, + 'user_is_admin': request.user.groups.filter(name='admin').exists()}) class ServiceView(FormView):