From: Alexandre Emsenhuber Date: Tue, 3 Mar 2009 16:30:02 +0000 (+0000) Subject: Fix for r47964: correct check X-Git-Tag: 1.31.0-rc.0~42627 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=d9d428ad3c19788119d056a65438650a6bb447de;p=lhc%2Fweb%2Fwiklou.git Fix for r47964: correct check --- diff --git a/includes/Article.php b/includes/Article.php index 3f079a9f14..0e942de1f0 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1953,7 +1953,7 @@ class Article { return false; } - if ( wfReadOnly() ) { + if ( !$this->mTitle->userCan( 'protect' ) ) { wfDebug( "updateRestrictions failed: insufficient permissions\n" ); return false; }