From 4b921b2076fa7e73e01940d6653a7a2867e0cfe5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 28 Mar 2023 14:06:18 +0200 Subject: [PATCH] Unify default publication status for users that may manage articles and users that may manage their own articles --- wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php index 5f0e00f5c0..de3d626bc5 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php @@ -581,7 +581,10 @@ class ArticleAddForm extends AbstractForm $dateTime->setTimezone(WCF::getUser()->getTimeZone()); $this->time = $dateTime->format('c'); - if (!WCF::getSession()->getPermission('admin.content.article.canManageArticle')) { + if ( + !WCF::getSession()->getPermission('admin.content.article.canManageArticle') + && !WCF::getSession()->getPermission('admin.content.article.canManageOwnArticles') + ) { $this->publicationStatus = Article::UNPUBLISHED; } } -- 2.20.1