r48577 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48576‎ | r48577 | r48578 >
Date:11:52, 19 March 2009
Author:ialex
Status:ok
Tags:
Comment:
We have User::isAllowed() for that :)
Modified paths:
  • /trunk/phase3/includes/specials/SpecialExport.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialExport.php
@@ -175,8 +175,8 @@
176176
177177 private function userCanOverrideExportDepth() {
178178 global $wgUser;
179 -
180 - return in_array( 'override-export-depth', $wgUser->getRights());
 179+
 180+ return $wgUser->isAllowed( 'override-export-depth' );
181181 }
182182
183183 /**

Status & tagging log