Index: trunk/extensions/DataTransfer/specials/DT_ImportCSV.php |
— | — | @@ -65,9 +65,9 @@ |
66 | 66 | global $wgUser, $wgOut, $wgRequest; |
67 | 67 | $this->setHeaders(); |
68 | 68 | |
69 | | - if ( ! $wgUser->isAllowed('importxml') ) { |
| 69 | + if ( ! $wgUser->isAllowed('datatransferimport') ) { |
70 | 70 | global $wgOut; |
71 | | - $wgOut->permissionRequired('importxml'); |
| 71 | + $wgOut->permissionRequired('datatransferimport'); |
72 | 72 | return; |
73 | 73 | } |
74 | 74 | |
Index: trunk/extensions/DataTransfer/specials/DT_ImportXML.php |
— | — | @@ -23,9 +23,9 @@ |
24 | 24 | global $wgUser, $wgOut, $wgRequest; |
25 | 25 | $this->setHeaders(); |
26 | 26 | |
27 | | - if ( ! $wgUser->isAllowed('importxml') ) { |
| 27 | + if ( ! $wgUser->isAllowed('datatransferimport') ) { |
28 | 28 | global $wgOut; |
29 | | - $wgOut->permissionRequired('importxml'); |
| 29 | + $wgOut->permissionRequired('datatransferimport'); |
30 | 30 | return; |
31 | 31 | } |
32 | 32 | |
Index: trunk/extensions/DataTransfer/includes/DT_Settings.php |
— | — | @@ -16,8 +16,11 @@ |
17 | 17 | $dtgIP = $IP . '/extensions/DataTransfer'; |
18 | 18 | ## |
19 | 19 | |
20 | | -// PHP fails to find relative includes at some level of inclusion: |
21 | | -//$pathfix = $IP . $dtgScriptPath; |
| 20 | +### |
| 21 | +# Permission to import files |
| 22 | +### |
| 23 | +$wgGroupPermissions['sysop']['datatransferimport'] = true; |
| 24 | +$wgAvailableRights[] = 'datatransferimport'; |
22 | 25 | |
23 | 26 | // load global functions |
24 | 27 | require_once('DT_GlobalFunctions.php'); |