Fix editor privilage issues
This commit is contained in:
@@ -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 %}
|
||||
>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
{% if post.status == 1 %}
|
||||
Edit
|
||||
</a>
|
||||
{% elseif post.status == 0 %}
|
||||
{% elseif (post.status == 0 or post.status == 2) %}
|
||||
<strike>Edit</strike>
|
||||
</a> (Nonaktif)
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user