Skip to content

Commit

Permalink
[Fixes #8459] Create a New Group button should be hidden to non-super…
Browse files Browse the repository at this point in the history
…users (#8476) (#8477)

(cherry picked from commit 2bcd4ac)
(cherry picked from commit a4dceb3)

Co-authored-by: NAGGINDA MARTHA <[email protected]>
  • Loading branch information
Alessio Fabiani and marthamareal authored Dec 10, 2021
1 parent f804ace commit a2f466a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion geonode/groups/templates/groups/category_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{% block body %}
<div class="page-header">
{% if user.is_authenticated and not READ_ONLY_MODE %}
{% if user.is_authenticated and not READ_ONLY_MODE and user.is_superuser %}
<a href="{% url "group_category_create" %}" class="btn btn-primary pull-right">{% trans "Create a New Group Category" %}</a>
{% endif %}
<h2>{% trans "Explore Group Categories" %}</h2>
Expand Down
2 changes: 1 addition & 1 deletion geonode/groups/templates/groups/group_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{% block body %}
<div class="page-header">
{% if user.is_authenticated and not READ_ONLY_MODE %}
{% if user.is_authenticated and not READ_ONLY_MODE and user.is_superuser %}
<a href="{% url "group_create" %}" class="btn btn-primary pull-right">{% trans "Create a New Group" %}</a>
{% endif %}
<h2>{% trans "Explore Groups" %}</h2>
Expand Down

0 comments on commit a2f466a

Please sign in to comment.