Fixed constant reference
authorAlexander Ebert <ebert@woltlab.com>
Fri, 9 Sep 2016 10:59:40 +0000 (12:59 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 9 Sep 2016 10:59:46 +0000 (12:59 +0200)
wcfsetup/install/files/lib/data/article/Article.class.php

index baca875de67b3a180ffe420e7c6be4e90a52411d..b8773754df6c7c7b02f244ae21a5561058148aa2 100644 (file)
@@ -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;
                        }