From: Alexandre Emsenhuber Date: Mon, 16 Jul 2012 09:03:02 +0000 (+0200) Subject: Pass the local User object to Revision::userCan() X-Git-Tag: 1.31.0-rc.0~22973 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=58c2c579d9f928301245af3c7eb2ab03e5164e03;p=lhc%2Fweb%2Fwiklou.git Pass the local User object to Revision::userCan() Change-Id: Iffd857a577593642464371a988b7b7829d246748 --- diff --git a/includes/Article.php b/includes/Article.php index 3b259e2c58..18ca077402 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1075,8 +1075,9 @@ class Article extends Page { } $outputPage = $this->getContext()->getOutput(); + $user = $this->getContext()->getUser(); // If the user is not allowed to see it... - if ( !$this->mRevision->userCan( Revision::DELETED_TEXT ) ) { + if ( !$this->mRevision->userCan( Revision::DELETED_TEXT, $user ) ) { $outputPage->wrapWikiMsg( "\n", 'rev-deleted-text-permission' );