From 038aa4ccf6be65c150e3c0c340b4445767f77ce2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 28 Oct 2024 21:56:26 +0300 Subject: [PATCH] show "publish" button --- files/templates/post_actions.html | 2 +- files/templates/post_actions_mobile.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/templates/post_actions.html b/files/templates/post_actions.html index 1cb4a2b44..9fa7c0c96 100644 --- a/files/templates/post_actions.html +++ b/files/templates/post_actions.html @@ -1,4 +1,4 @@ -{% if v and v.id == p.author_id and p.draft %} +{% if p.draft and v and (v.id == p.author_id or v.admin_level >= PERMS['PUBLISH_OTHERS_POSTS']) %} {% endif %} diff --git a/files/templates/post_actions_mobile.html b/files/templates/post_actions_mobile.html index 3a66e5706..dfdd4f13b 100644 --- a/files/templates/post_actions_mobile.html +++ b/files/templates/post_actions_mobile.html @@ -1,4 +1,4 @@ -{% if v.id == p.author_id and p.draft %} +{% if p.draft and (v.id == p.author_id or v.admin_level >= PERMS['PUBLISH_OTHERS_POSTS']) %}