mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Don't lock unexisting pages
This commit is contained in:
parent
6298e9bf33
commit
d828319897
1 changed files with 6 additions and 4 deletions
|
@ -68,10 +68,12 @@
|
|||
<span>🔒 Pagina bloccata: non possono essere effettuate ulteriori modifiche.</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if g.user.role == "Admin" %}
|
||||
<form action="{{ url_for('page_wiki_lock', key=key) }}" method="POST">
|
||||
<input class="submit" type="submit" value="Blocca/Sblocca pagina">
|
||||
</form>
|
||||
{% if wiki_page is not none %}
|
||||
{% if g.user.role == "Admin" %}
|
||||
<form action="{{ url_for('page_wiki_lock', key=key) }}" method="POST">
|
||||
<input class="submit" type="submit" value="Blocca/Sblocca pagina">
|
||||
</form>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Reference in a new issue