Skip to content
Snippets Groups Projects

Resolve "Fix permission (manage_event)"

Merged Tom Teichler requested to merge 34-fix-permission-manage_event into master
3 files
+ 27
16
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -14,17 +14,14 @@
{% block content %}
<h4>{{ event }}</h4>
{% has_perm 'paweljong.manage_event' user event as can_manage_event %}
{% has_perm 'paweljong.change_event_rule' user event as can_change_event_rule %}
{% if can_manage_event %}
{% if can_change_event_rule %}
<p>
{% if can_manage_event %}
<a href="{% url 'edit_event_by_slug' event.slug %}" class="btn waves-effect waves-light">
<i class="material-icons left iconify" data-icon="mdi:edit"></i>
{% trans "Edit" %}
</a>
{% endif %}
<a href="{% url 'edit_event_by_slug' event.slug %}" class="btn waves-effect waves-light">
<i class="material-icons left iconify" data-icon="mdi:edit"></i>
{% trans "Edit" %}
</a>
</p>
{% endif %}
Loading