Fix edit condition conflicts
This commit is contained in:
parent
a9101eb047
commit
c77730e516
@ -99,7 +99,7 @@
|
||||
<br>
|
||||
|
||||
<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
|
||||
{% endif %}
|
||||
>
|
||||
@ -107,7 +107,7 @@
|
||||
</button>
|
||||
</form>
|
||||
|
||||
{% if post.status == 1 %}
|
||||
{% if (post.status == 1 and editor_now == creator.id) %}
|
||||
<form method="post">
|
||||
<input type="hidden" name="id" value="{{ post.id }}">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user