r93084 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93083‎ | r93084 | r93085 >
Date:18:39, 25 July 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
added user rights groups
Modified paths:
  • /trunk/extensions/Push/Push.i18n.php (modified) (history)
  • /trunk/extensions/Push/Push.php (modified) (history)
  • /trunk/extensions/Push/Push_Settings.php (modified) (history)
  • /trunk/extensions/Push/RELEASE-NOTES (modified) (history)

Diff [purge]

Index: trunk/extensions/Push/Push.i18n.php
@@ -21,6 +21,18 @@
2222 'right-bulkpush' => 'Authorization to use bulk push functionality (ie Special:Push).',
2323 'right-pushadmin' => 'Authorization to modify push targets and push settings.',
2424
 25+ 'group-pusher' => 'Pushers',
 26+ 'group-pusher-member' => 'Pusher',
 27+ 'grouppage-pusher' => 'Project:Pushers',
 28+
 29+ 'group-bulkpusher' => 'Bulk pushers',
 30+ 'group-bulkpusher-member' => 'Bulk pusher',
 31+ 'grouppage-bulkpusher' => 'Project:Bulk_pushers',
 32+
 33+ 'group-filepusher' => 'File pushers',
 34+ 'group-filepusher-member' => 'File pusher',
 35+ 'grouppage-filepusher' => 'Project:File_pushers',
 36+
2537 'push-err-captacha' => 'Could not push to $1 due to captcha.',
2638 'push-err-captcha-page' => 'Could not push page $1 to all targets due to CAPTCHA.',
2739 'push-err-authentication' => 'Authentication at $1 failed. $2',
Index: trunk/extensions/Push/Push.php
@@ -25,7 +25,7 @@
2626 die( 'Not an entry point.' );
2727 }
2828
29 -define( 'Push_VERSION', '1.0' );
 29+define( 'Push_VERSION', '1.1 alpha' );
3030
3131 $wgExtensionCredits['other'][] = array(
3232 'path' => __FILE__,
Index: trunk/extensions/Push/Push_Settings.php
@@ -33,6 +33,14 @@
3434 $wgGroupPermissions['sysop']['filepush'] = true;
3535 // $wgGroupPermissions['sysop']['pushadmin'] = true;
3636
 37+$wgGroupPermissions['pusher']['push'] = true;
 38+
 39+$wgGroupPermissions['bulkpusher']['bulkpush'] = true;
 40+$wgGroupPermissions['bulkpusher']['push'] = true;
 41+
 42+$wgGroupPermissions['filepusher']['filepush'] = true;
 43+$wgGroupPermissions['filepusher']['push'] = true;
 44+
3745 # Show the push action as a tab (if not, it's displayed in the actions dropdown).
3846 # This only works for skins with an actions dropdown. For others push will always appear as a tab.
3947 $egPushShowTab = false;
Index: trunk/extensions/Push/RELEASE-NOTES
@@ -8,6 +8,7 @@
99 2011-0x-xx
1010
1111 * Added PushAPIAfterPush and PushAPIAfterImagePush hooks to the API modules.
 12+* Added pusher, file pusher and bulk pusher user rights groups.
1213
1314 === Version 1.0 ===
1415 2011-05-26

Status & tagging log