Fix edit condition conflicts

This commit is contained in:
Gregorio Chiko Putra 2017-09-06 14:11:51 +07:00
parent a9101eb047
commit c77730e516

View File

@ -99,7 +99,7 @@
<br> <br>
<button type="submit" <button type="submit"
{% if (post.status == 0 and post.valid_at <= timestamp or editor_now != creator.id) %} {% if (post.status == 0 or editor_now != creator.id) %}
disabled disabled
{% endif %} {% endif %}
> >
@ -107,7 +107,7 @@
</button> </button>
</form> </form>
{% if post.status == 1 %} {% if (post.status == 1 and editor_now == creator.id) %}
<form method="post"> <form method="post">
<input type="hidden" name="id" value="{{ post.id }}"> <input type="hidden" name="id" value="{{ post.id }}">