Commit 05d18308 authored by Paul Brown's avatar Paul Brown

Merge pull request #972 from pawl/can_edit_navtabs

Hide create button in edit_view unless user has permission
parents 027b5474 e992288a
......@@ -16,9 +16,11 @@
<li>
<a href="{{ return_url }}">{{ _gettext('List') }}</a>
</li>
{%- if admin_view.can_create -%}
<li>
<a href="{{ get_url('.create_view', url=return_url) }}">{{ _gettext('Create') }}</a>
</li>
{%- endif -%}
<li class="active">
<a href="javascript:void(0)">{{ _gettext('Edit') }}</a>
</li>
......
......@@ -16,9 +16,11 @@
<li>
<a href="{{ return_url }}">{{ _gettext('List') }}</a>
</li>
{%- if admin_view.can_create -%}
<li>
<a href="{{ get_url('.create_view', url=return_url) }}">{{ _gettext('Create') }}</a>
</li>
{%- endif -%}
<li class="active">
<a href="javascript:void(0)">{{ _gettext('Edit') }}</a>
</li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment