Skip to content

Commit

Permalink
Fixed #59
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Henckens <[email protected]>
  • Loading branch information
janhenckens committed Mar 13, 2022
1 parent 863cece commit fa05b5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/templates/_index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% set createUrl = url('navigate/add') %}

{% block actionButton %}
{% if (not currentUser.admin and settings.anyoneCanAdd) or currentUser.admin %}
{% if ((not currentUser.admin and settings.anyoneCanAdd) or currentUser.admin) and craft.config.allowAdminChanges %}
<div id="button-container">
<div class="btngroup submit">
<a class="btn submit add icon" href="{{ createUrl }}">
Expand Down Expand Up @@ -52,7 +52,8 @@
</th>
<td data-title="Handle"><code>{{ navigation.handle }}</code></td>
<td data-title="Settings">
{% if not navigation.adminOnly or currentUser.admin %}
{% if (not navigation.adminOnly or currentUser.admin) and craft.config.allowAdminChanges %}

<a href="{{ url('navigate/settings/'~navigation.id) }}" role="button"><span
data-icon="settings"></span></a>
{% endif %}
Expand Down

0 comments on commit fa05b5a

Please sign in to comment.