From: Tim Düsterhus Date: Tue, 28 Mar 2023 12:06:18 +0000 (+0200) Subject: Unify default publication status for users that may manage articles and users that... X-Git-Tag: 5.5.11_dev_1~11^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b921b2076fa7e73e01940d6653a7a2867e0cfe5;p=GitHub%2FWoltLab%2FWCF.git Unify default publication status for users that may manage articles and users that may manage their own articles --- 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; } }