From ac85d37d9a8b13f8bb5f431855dbf5b1a2bb073d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 31 Oct 2019 19:09:10 +0100 Subject: [PATCH] Improved the visibility filter for articles - Admin: All articles are shown - Edit own articles only: All public articles + own regardless of status - Anybody else: Only published and non-deleted articles --- com.woltlab.wcf/templates/article.tpl | 4 ++++ com.woltlab.wcf/templates/articleListItems.tpl | 1 + .../lib/data/article/AccessibleArticleList.class.php | 9 +++++++-- .../files/lib/data/article/ViewableArticle.class.php | 8 ++++++++ wcfsetup/install/lang/de.xml | 2 ++ wcfsetup/install/lang/en.xml | 2 ++ 6 files changed, 24 insertions(+), 2 deletions(-) diff --git a/com.woltlab.wcf/templates/article.tpl b/com.woltlab.wcf/templates/article.tpl index 52bc634a06..3a66b24855 100644 --- a/com.woltlab.wcf/templates/article.tpl +++ b/com.woltlab.wcf/templates/article.tpl @@ -115,6 +115,10 @@ {include file='header'} +{if !$article->isPublished()} +

{lang publicationDate=$article->publicationDate}wcf.article.publicationStatus.{@$article->publicationStatus}{/lang}

+{/if} +
{if $articleContent->teaser}