From: Alexander Ebert Date: Fri, 9 Sep 2016 10:59:40 +0000 (+0200) Subject: Fixed constant reference X-Git-Tag: 3.0.0_Beta_1~245 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=37c03de964ce30ab19ed6e930846f073598bbb7d;p=GitHub%2FWoltLab%2FWCF.git Fixed constant reference --- 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; }