1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00

Don't lock unexisting pages

This commit is contained in:
Steffo 2019-02-03 20:37:47 +01:00
parent 6298e9bf33
commit d828319897

View file

@ -68,10 +68,12 @@
<span>🔒 Pagina bloccata: non possono essere effettuate ulteriori modifiche.</span> <span>🔒 Pagina bloccata: non possono essere effettuate ulteriori modifiche.</span>
</div> </div>
{% endif %} {% endif %}
{% if wiki_page is not none %}
{% if g.user.role == "Admin" %} {% if g.user.role == "Admin" %}
<form action="{{ url_for('page_wiki_lock', key=key) }}" method="POST"> <form action="{{ url_for('page_wiki_lock', key=key) }}" method="POST">
<input class="submit" type="submit" value="Blocca/Sblocca pagina"> <input class="submit" type="submit" value="Blocca/Sblocca pagina">
</form> </form>
{% endif %} {% endif %}
{% endif %}
</div> </div>
{% endblock %} {% endblock %}