Mattflaschen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/65337
Change subject: Only tag users without the autoconfirmed right.
......................................................................
Only tag users without the autoconfirmed right.
Bug: 44361
Change-Id: I3bc2235ac9d5ae1060c86df03663dcb8a6966a38
---
M GettingStarted.hooks.php
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GettingStarted
refs/changes/37/65337/1
diff --git a/GettingStarted.hooks.php b/GettingStarted.hooks.php
index 7935c7c..16da5e8 100644
--- a/GettingStarted.hooks.php
+++ b/GettingStarted.hooks.php
@@ -241,7 +241,9 @@
public static function onRecentChange_save( RecentChange $recentChange
) {
global $wgRequest;
- if ( $recentChange->getAttribute( 'rc_type' ) !== RC_EDIT ) {
+ $performer = $recentChange->getPerformer();
+
+ if ( $performer->isAllowed( 'autoconfirmed' ) ||
$recentChange->getAttribute( 'rc_type' ) !== RC_EDIT ) {
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/65337
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3bc2235ac9d5ae1060c86df03663dcb8a6966a38
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GettingStarted
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits