Last modified: 2013-10-23 18:17:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44072, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42072 - Add option to prevent users from removing themselves from a user group
Add option to prevent users from removing themselves from a user group
Status: NEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.18.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-13 18:02 UTC by Hersfold
Modified: 2013-10-23 18:17 UTC (History)
0 users

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


Attachments

Description Hersfold 2012-11-13 18:02:29 UTC
$wgGroupsRemoveFromSelf allows the site manager to specify what groups a user can remove from themselves, even if they would otherwise not be able to do so. I am requesting the inverse of this; a variable that allows the site manager to specify what groups they cannot remove from themselves, even if they can remove it from others.

The main utility of this feature would be that you can ensure that there is always at least one member of the group. Imagine a setup like this:

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

Here, only serveradmins can promote or demote other serveradmins (obviously for this to work, these options would have to be added piece-meal or database wonkery gets involved, but ignore that for now, it's irrelevant). Thus, if the only member of the group accidentally removes themself from the group, they cannot re-add themselves to it, nor can any one else add themselves to the group.

A new $wgGroupsCannotRemoveFromSelf variable could be set up, with the same syntax, to specify that "serveradmins cannot remove themselves from the serveradmin group", which should help to ensure that accidential clicks are not entirely disastrous.
Comment 1 Andre Klapper 2012-11-15 09:06:00 UTC
Do you really still run 1.18.1? Any chance to upgrade to something supported?
Comment 2 Hersfold 2012-11-15 17:04:05 UTC
Yes, the wiki I manage at my workplace still uses 1.18.1. I think there may have been some reason why we didn't upgrade to anything more recent, but I can't remember now just what that would have been. Regardless, it's likely to stay that way for a fair bit, as I'm currently assigned to another project and I'm not technically being paid to do any of the wiki stuff right now.

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


Navigation
Links