Fix for r47964: correct check
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 3 Mar 2009 16:30:02 +0000 (16:30 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 3 Mar 2009 16:30:02 +0000 (16:30 +0000)
includes/Article.php

index 3f079a9..0e942de 100644 (file)
@@ -1953,7 +1953,7 @@ class Article {
                        return false;
                }
                
-               if ( wfReadOnly() ) {
+               if ( !$this->mTitle->userCan( 'protect' ) ) {
                        wfDebug( "updateRestrictions failed: insufficient permissions\n" );
                        return false;
                }