r93031 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93030‎ | r93031 | r93032 >
Date:23:37, 24 July 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
added user rights group
Modified paths:
  • /trunk/extensions/UploadWizard/UploadWizard.i18n.php (modified) (history)
  • /trunk/extensions/UploadWizard/UploadWizard.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/UploadWizard.i18n.php
@@ -17,6 +17,9 @@
1818 'mwe-upwiz-uploadcampaigns' => 'Upload campaigns',
1919 'mwe-upwiz-uploadcampaign' => 'Upload campaign configuration',
2020 'right-upwizcampaigns' => 'Configure Upload Wizard campaigns',
 21+ 'group-upwizcampeditors' => 'Upload Wizard campaign editors',
 22+ 'group-upwizcampeditors-member' => 'Upload Wizard campaign editor',
 23+ 'grouppage-upwizcampeditors' => 'Project:Upload Wizard campaign editors',
2124 'mwe-upwiz-js-off' => 'UploadWizard uses JavaScript for an improved interface. Your browser either does not support JavaScript or has JavaScript turned off, so we are showing you a simple upload form.',
2225 'mwe-upwiz-extension-disabled' => 'This page has been disabled due to temporary technical problems. In the meantime try the standard upload form.',
2326 'mwe-upwiz-code-unknown' => 'Unknown language',
Index: trunk/extensions/UploadWizard/UploadWizard.php
@@ -73,11 +73,12 @@
7474 $wgAvailableRights[] = 'upwizcampaigns';
7575
7676 # Users that can modify the upload campaigns (ie via Special:UploadCampaigns)
77 -$wgGroupPermissions['*' ]['upwizcampaigns'] = false;
78 -$wgGroupPermissions['user' ]['upwizcampaigns'] = false;
79 -$wgGroupPermissions['autoconfirmed']['upwizcampaigns'] = false;
80 -$wgGroupPermissions['bot' ]['upwizcampaigns'] = false;
81 -$wgGroupPermissions['sysop' ]['upwizcampaigns'] = true;
 77+$wgGroupPermissions['*' ]['upwizcampaigns'] = false;
 78+$wgGroupPermissions['user' ]['upwizcampaigns'] = false;
 79+$wgGroupPermissions['autoconfirmed' ]['upwizcampaigns'] = false;
 80+$wgGroupPermissions['bot' ]['upwizcampaigns'] = false;
 81+$wgGroupPermissions['sysop' ]['upwizcampaigns'] = true;
 82+$wgGroupPermissions['upwizcampeditors']['upwizcampaigns'] = true;
8283
8384 // Init the upload wizard config array
8485 // UploadWizard.config.php includes default configuration

Status & tagging log