Allow users that may contribute articles to see their own articles independent of...
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 28 Mar 2023 12:12:34 +0000 (14:12 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 28 Mar 2023 12:28:21 +0000 (14:28 +0200)
wcfsetup/install/files/lib/data/article/AccessibleArticleList.class.php

index f6797aa316748254511a21cc9ff9d12af486c671..745629c5af2f3f7270142f0c1ab35aa833ed4865 100644 (file)
@@ -31,7 +31,10 @@ class AccessibleArticleList extends ViewableArticleList
             $this->getConditionBuilder()->add('article.categoryID IN (?)', [$accessibleCategoryIDs]);
 
             if (!WCF::getSession()->getPermission('admin.content.article.canManageArticle')) {
-                if (WCF::getSession()->getPermission('admin.content.article.canManageOwnArticles')) {
+                if (
+                    WCF::getSession()->getPermission('admin.content.article.canManageOwnArticles')
+                    || WCF::getSession()->getPermission('admin.content.article.canContributeArticle')
+                ) {
                     $this->getConditionBuilder()->add(
                         '(article.userID = ? OR (article.isDeleted = ? AND article.publicationStatus = ?))',
                         [WCF::getUser()->userID, 0, Article::PUBLISHED]