Skip to content
Snippets Groups Projects
Commit 8111936d authored by Roang's avatar Roang
Browse files

Fix incorrect lock warning for new wiki pages

Fixes #625
parent e4e77413
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</nav> </nav>
<article class="pb-11"> <article class="pb-11">
{% if not lock_id %} {% if page_exists and not lock_id %}
{% call alert.warning() %} {% call alert.warning() %}
<strong>{{ _("This page is currently being edited by another user, please try again in a moment.") }}</strong> <strong>{{ _("This page is currently being edited by another user, please try again in a moment.") }}</strong>
{% endcall %} {% endcall %}
......
...@@ -210,6 +210,7 @@ class StaticPageEditView(ConferenceRequiredMixin, TemplateView): ...@@ -210,6 +210,7 @@ class StaticPageEditView(ConferenceRequiredMixin, TemplateView):
{ {
'page': static_page, 'page': static_page,
'conf': self.conf, 'conf': self.conf,
'page_exists': page_exists,
'page_slug': page_slug, 'page_slug': page_slug,
'static_page': static_page, 'static_page': static_page,
'writeable': writeable, 'writeable': writeable,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment