Last modified: 2007-11-29 20:59:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11505 - List of rights that can be granted/revoked broken in Special:Userrights
List of rights that can be granted/revoked broken in Special:Userrights
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-29 23:42 UTC by Prodego
Modified: 2007-11-29 20:59 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Prodego 2007-09-29 23:42:38 UTC
r23577 broke the new userrights functionality (giving certain groups the ability to grant certain rights) when a user is in multiple granting groups. For example, if you are in groups A and B, and group A can grant a, while group B can grant b, only one of the two will be listed in the 'you can grant' statement. To see this, add

$wgAddGroups = $wgRemoveGroups = array(); // Add customizations after this line
$wgGroupPermissions['steward']['userrights'] = true;
$wgAddGroups['steward'] = true;
$wgRemoveGroups['steward'] = true;

$wgGroupPermissions['bureaucrat']['userrights'] = true;
$wgAddGroups['bureaucrat'] = array( 'sysop', 'bot', 'bureaucrat' );
$wgRemoveGroups['bureaucrat'] = array( 'bot' );

to localsettings.php (it must be in that order!), and make a bureaucrat and steward user. Then try to change your rights.
Comment 1 Roan Kattouw 2007-11-29 14:36:18 UTC
With the following setup, a bureaucrat+steward user can add and remove both sysop and bot:

$wgAddGroups = $wgRemoveGroups = array(); // Add customizations after this line
$wgGroupPermissions['steward']['userrights'] = true;
$wgAddGroups['steward'] = array('bot');
$wgRemoveGroups['steward'] = array('bot');

$wgGroupPermissions['bureaucrat']['userrights'] = true;
$wgAddGroups['bureaucrat'] = array( 'sysop' );
$wgRemoveGroups['bureaucrat'] = array( 'sysop' );
Comment 2 Prodego 2007-11-29 20:59:37 UTC
(In reply to comment #1)
> With the following setup, a bureaucrat+steward user can add and remove both
> sysop and bot:
> 
> $wgAddGroups = $wgRemoveGroups = array(); // Add customizations after this line
> $wgGroupPermissions['steward']['userrights'] = true;
> $wgAddGroups['steward'] = array('bot');
> $wgRemoveGroups['steward'] = array('bot');
> 
> $wgGroupPermissions['bureaucrat']['userrights'] = true;
> $wgAddGroups['bureaucrat'] = array( 'sysop' );
> $wgRemoveGroups['bureaucrat'] = array( 'sysop' );
> 

What was broken was the listing, above the selection boxes, saying what rights you can change ("You can add users to...") I can't check it right now, but it looks like one of the later changes might have fixed it. Could you just confirm that that is displaying properly?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links