From 58c2c579d9f928301245af3c7eb2ab03e5164e03 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 16 Jul 2012 11:03:02 +0200 Subject: [PATCH] Pass the local User object to Revision::userCan() Change-Id: Iffd857a577593642464371a988b7b7829d246748 --- includes/Article.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' ); -- 2.20.1