Unify default publication status for users that may manage articles and users that...
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 28 Mar 2023 12:06:18 +0000 (14:06 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 28 Mar 2023 12:28:20 +0000 (14:28 +0200)
wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php

index 5f0e00f5c0d449f10a40fe3013f86f36be48b7ae..de3d626bc5bf4f6037365c4ed4932909a7f22c63 100644 (file)
@@ -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;
         }
     }