Last modified: 2013-10-23 18:17:46 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.
Do you really still run 1.18.1? Any chance to upgrade to something supported?
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.