1

I control a Mediawiki site. Here you can see users being automatically updated and added into the extended confirmed user group.

If I have a group called "util" where I just want to add relevant code to enable autopromotion with a log entry like that, make an edit and get promoted automatically into the group before removing the bit of code would it be possible? Also what code would I have to use to gain a level of access like that?

2

Use $wgAutopromote (or $wgAutopromoteOnce if you want to be able to manually remove people from the group). It would look something like this:

$wgAutopromote = [
    'util' => [ APCOND_EDITCOUNT, 1 ],
];
$wgImplicitGroups[] = 'util'; // for good measure, hide the group in the normal group management interfaces
  • So it would be something like this: $wgAutopromoteOnce['onEdit']['util'] = array( '&', array( APCOND_EDITCOUNT, 1 ), ); if I wanted to be able to manually remove a user. – sau226 Nov 27 '17 at 11:56
  • You can omit the & since you only have one condition: $wgAutopromoteOnce['onEdit']['util'] = [ APCOND_EDITCOUNT, 1 ]; – Tgr Nov 27 '17 at 22:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.