That is exactly what the createaccount permission is. Do something like (i
havent tested this and im a little rusty on the autopromote syntax):
$wgGroupPermissions['*']['createaccount'] = true;
$wgRevokePermissions['usernotadmin']['createaccount'] = true;
$wgAutopromote = [
'usernotadmin' =>
[ '&', [ APCOND_INGROUPS, 'user' ], [ '!', [
APCOND_INGROUPS, 'sysop'
]]]
];
--
Brian
On Friday, July 7, 2017, Tom Hutchison <tom(a)hutch4.us> wrote:
Hi all
Perhaps I am missing it, but is there anyway to stop users from using the
"create2" function and only allow sysops and * to create a user accounts.
I
am not talking about "create" or
"createaccount" as a permission. What I
don't want is existing logged in users to go to Special:Createaccount and
create another account.
Thanks
Tom
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l