From 37c03de964ce30ab19ed6e930846f073598bbb7d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 9 Sep 2016 12:59:40 +0200 Subject: [PATCH] Fixed constant reference --- wcfsetup/install/files/lib/data/article/Article.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/article/Article.class.php b/wcfsetup/install/files/lib/data/article/Article.class.php index baca875de6..b8773754df 100644 --- a/wcfsetup/install/files/lib/data/article/Article.class.php +++ b/wcfsetup/install/files/lib/data/article/Article.class.php @@ -81,7 +81,7 @@ class Article extends DatabaseObject implements ILinkableObject { * @return boolean */ public function canRead() { - if ($this->publicationStatus != Article::PUBLISHED) { + if ($this->publicationStatus != self::PUBLISHED) { if (!WCF::getSession()->getPermission('admin.content.article.canManageArticle') && (!WCF::getSession()->getPermission('admin.content.article.canContributeArticle') || $this->userID != WCF::getUser()->userID)) { return false; } -- 2.20.1