Parent5446 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/109443
Change subject: Changed permission needed for throttle override
......................................................................
Changed permission needed for throttle override
Moved permission for throttle override to a new throttleoverride
permission, rather than re-using the noratelimit permission.
Bug: 25000
Change-Id: I03680dee7db2c10eb8c5aad2eb2cf5a515db275b
---
M SpecialOverrideThrottle.php
M ThrottleOverride.i18n.php
M ThrottleOverride.php
3 files changed, 5 insertions(+), 1 deletion(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ThrottleOverride
refs/changes/43/109443/1
diff --git a/SpecialOverrideThrottle.php b/SpecialOverrideThrottle.php
index 2232a93..794a107 100644
--- a/SpecialOverrideThrottle.php
+++ b/SpecialOverrideThrottle.php
@@ -20,7 +20,7 @@
class SpecialOverrideThrottle extends FormSpecialPage {
function __construct() {
- parent::__construct( 'OverrideThrottle', 'noratelimit' );
+ parent::__construct( 'OverrideThrottle', 'throttleoverride' );
}
function getMessagePrefix() {
diff --git a/ThrottleOverride.i18n.php b/ThrottleOverride.i18n.php
index 6b007b9..06a3307 100644
--- a/ThrottleOverride.i18n.php
+++ b/ThrottleOverride.i18n.php
@@ -39,6 +39,7 @@
'throttleoverride-list-reason' => 'Reason',
'throttleoverride-list-search' => 'Search',
'throttleoverride-list-noresults' => 'The throttle override list is
empty.',
+ 'action-throttleoverride' => 'override rate limits',
);
/** Message documentation (Message documentation)
@@ -74,6 +75,7 @@
'throttleoverride-list-search' => 'Label for the sumbit button on
[[Special:ThrottleOverrideList]].
{{Identical|Search}}',
'throttleoverride-list-noresults' => 'Message displayed on
[[Special:ThrottleOverrideList]] when the pager returns no results',
+ 'action-throttleoverride' => 'Explains what throttleoverride permission
does; displayed when user gets a permission denied error',
);
/** Breton (brezhoneg)
diff --git a/ThrottleOverride.php b/ThrottleOverride.php
index 1d463d7..80d9c8b 100644
--- a/ThrottleOverride.php
+++ b/ThrottleOverride.php
@@ -49,6 +49,8 @@
$wgSpecialPages['ThrottleOverrideList'] = 'SpecialThrottleOverrideList';
$wgSpecialPageGroups['OverrideThrottle'] = 'users';
+$wgAvailableRights[] = 'throttleoverride';
+
Hooks::register( 'PingLimiter', 'ThrottleOverrideHooks::onPingLimiter' );
Hooks::register( 'ExemptFromAccountCreationThrottle',
'ThrottleOverrideHooks::onExemptFromAccountCreationThrottle' );
Hooks::register( 'LoadExtensionSchemaUpdates',
'ThrottleOverrideHooks::onLoadExtensionSchemaUpdates' );
--
To view, visit https://gerrit.wikimedia.org/r/109443
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I03680dee7db2c10eb8c5aad2eb2cf5a515db275b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ThrottleOverride
Gerrit-Branch: master
Gerrit-Owner: Parent5446 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits