Andrew Bogott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/202160

Change subject: Make acceptNewUserName public.
......................................................................

Make acceptNewUserName public.

I want to call it from OpenStackManager to vet the shell name
(which is effectively a second, different account name, subject
to all the same restrictions as the username).

Bug T93543

Change-Id: I713f969c62aab0f8e877f1d4381758e7389ebe0a
---
M TitleBlacklist.hooks.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TitleBlacklist 
refs/changes/60/202160/1

diff --git a/TitleBlacklist.hooks.php b/TitleBlacklist.hooks.php
index 7e342d9..8354505 100644
--- a/TitleBlacklist.hooks.php
+++ b/TitleBlacklist.hooks.php
@@ -138,7 +138,7 @@
         *
         * @return bool Acceptable
         */
-       private static function acceptNewUserName( $userName, $permissionsUser, 
&$err, $override = true, $log = false ) {
+       public static function acceptNewUserName( $userName, $permissionsUser, 
&$err, $override = true, $log = false ) {
                global $wgUser;
                $title = Title::makeTitleSafe( NS_USER, $userName );
                $blacklisted = TitleBlacklist::singleton()->userCannot( $title, 
$permissionsUser,

-- 
To view, visit https://gerrit.wikimedia.org/r/202160
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I713f969c62aab0f8e877f1d4381758e7389ebe0a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TitleBlacklist
Gerrit-Branch: master
Gerrit-Owner: Andrew Bogott <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to