1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +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 g.user.role == "Admin" %} {% if wiki_page is not none %}
<form action="{{ url_for('page_wiki_lock', key=key) }}" method="POST"> {% if g.user.role == "Admin" %}
<input class="submit" type="submit" value="Blocca/Sblocca pagina"> <form action="{{ url_for('page_wiki_lock', key=key) }}" method="POST">
</form> <input class="submit" type="submit" value="Blocca/Sblocca pagina">
</form>
{% endif %}
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}