Skip to content

Commit

Permalink
[Fixes #297] Enforce add_resourcebase permission control on apps list…
Browse files Browse the repository at this point in the history
… page (#298)

* use add_resource perm

* Update app_list.html

Co-authored-by: Giovanni Allegri <giohappy@gmail.com>
  • Loading branch information
marthamareal and giohappy authored Jul 9, 2021
1 parent c6cb26b commit b368d27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{% block body %}
<div class="page-header">
{% if user.is_authenticated and not READ_ONLY_MODE %}
{% if user.is_authenticated and "add_resource" in user.perms%}
<div class="dropdown" style="float: right;">
<button class="btn btn-primary dropdown-toggle" type="button" id="create-new-app-dropdown-menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
{% trans "Create New" %} {% blocktrans %}{{GEONODE_APPS_NAME}}{% endblocktrans %}
Expand Down

0 comments on commit b368d27

Please sign in to comment.