Fix edit condition conflicts
This commit is contained in:
parent
a9101eb047
commit
c77730e516
@ -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 }}">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user