Skip to content

Commit e652289

Browse files
authored
Merge pull request doccano#160 from CatalystCode/bugfix/fix-demo-pages-for-superuser
Bugfix/Fix NoReverseMatch on demo page for superuser
2 parents 21471bd + 1ac5b4a commit e652289

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/server/templates/annotation/annotation_base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<link rel="stylesheet" href="{% static 'css/annotation.css' %}">
55
{% endblock %}
66
{% block navigation %}
7-
{% if user.is_superuser %}
7+
{% if user.is_superuser and 'project_id' in view.kwargs %}
88
<a class="navbar-item" href="{% url 'dataset' view.kwargs.project_id %}">
99
<span class="icon">
1010
<i class="fas fa-edit"></i>

0 commit comments

Comments
 (0)