[Mediawiki-l] $wgAutopromote - How To

Valerio M. Pelliccioni vmp at silkwood.it
Tue May 25 09:19:58 UTC 2010


>>what's not working for you?
The useless feature that allows users pretend to be part of a group while they actually aren't.
  
>>What version of MediaWiki are you running?
MediaWiki  	1.15.1
PHP 	5.2.8 (apache2handler)
MySQL 	5.1.30-community

>>Do the desired rights show up for the group on >>Special:ListGroupRights? 
Yes, of course: read, upload, etc... .

>>What is the exact code you're using with $wgAutopromote?
---------------------------------------------------------
$wgAutopromote = array(
	'autoconfirmed' => array( '&',
		array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ),
		array( APCOND_AGE, &$wgAutoConfirmAge ),
	),
	'employee' => array( '&',
		array( APCOND_EMAILCONFIRMED, &$wgAutoConfirmAge ),
	),
);
---------------------------------------------------------
This way, an emailconfirmed user (the one that follows and completes the confirmation procedures) can see itself as a part of the employee group using Special:Preferences.
This, at the same time, doesn't have effect on Special:ListUsers.

The group 'employee' in my MW configuration has some special write permissions managed by a well known extension:  $wgSpecialPageLockdown['FormEdit'] = array('employee'); which (you know) doesn't show up in the Special:ListGroupRights.

Of course, when I manually put a user in the desired group (employee) using Special:UserRights, everything works fine.

I do need to actually put a user into a group.
I wonder if there is a way to do this other than using the $wgAutopromote configuration directive.

Do you have any suggestion?
Any help is appreciated.

Thank's a lot.

Valerio




----- Original Message -----
From: emufarmers at gmail.com
To: vmp at silkwood.it,mediawiki-l at lists.wikimedia.org
Sent: Mon, 24 May 2010 13:51:23 -0400
Subject: Re: [Mediawiki-l] $wgAutopromote - How To


$wgAutopromote doesn't actually put the user into the group; it just sometimes pretends the user is in the group when checking rights (and on Special:Preferences).  Ignoring whether this behavior actually makes sense, what's not working for you?  The user should have the rights associated with the group, even though he won't be listed in it on Special:ListUsers.

 
What version of MediaWiki are you running?  Do the desired rights show up for the group on Special:ListGroupRights?  What is the exact code you're using with $wgAutopromote?


 




More information about the MediaWiki-l mailing list