From: Alexandre Emsenhuber Date: Thu, 19 Mar 2009 11:52:05 +0000 (+0000) Subject: We have User::isAllowed() for that :) X-Git-Tag: 1.31.0-rc.0~42445 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=62a26e3bab4aa4ed4319c83202d15bb007c11672;p=lhc%2Fweb%2Fwiklou.git We have User::isAllowed() for that :) --- diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index 83d0bbf599..04fd43b366 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -175,8 +175,8 @@ class SpecialExport extends SpecialPage { private function userCanOverrideExportDepth() { global $wgUser; - - return in_array( 'override-export-depth', $wgUser->getRights()); + + return $wgUser->isAllowed( 'override-export-depth' ); } /**