Revision: 48577
Author: ialex
Date: 2009-03-19 11:52:05 +0000 (Thu, 19 Mar 2009)
Log Message:
-----------
We have User::isAllowed() for that :)
Modified Paths:
--------------
trunk/phase3/includes/specials/SpecialExport.php
Modified: trunk/phase3/includes/specials/SpecialExport.php
===================================================================
--- trunk/phase3/includes/specials/SpecialExport.php 2009-03-19 10:09:27 UTC
(rev 48576)
+++ trunk/phase3/includes/specials/SpecialExport.php 2009-03-19 11:52:05 UTC
(rev 48577)
@@ -175,8 +175,8 @@
private function userCanOverrideExportDepth() {
global $wgUser;
-
- return in_array( 'override-export-depth', $wgUser->getRights());
+
+ return $wgUser->isAllowed( 'override-export-depth' );
}
/**
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs