Page MenuHomePhabricator

Allow groups to inherit permissions
Open, LowPublicFeature

Description

Author: cillimonber

Description:
Add wg variable to inherit group permissions, i. e. follow code:

$wgInheritGroupPermissions['sysop'] = array('editor');

And in Special:ListGroupRights MediaWiki displays simple "Inherit user rights of groups: Editors" instead of duplicate rights of "editor" group.


Version: unspecified
Severity: enhancement

Details

Reference
bz31937

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:53 PM
bzimport set Reference to bz31937.
bzimport added a subscriber: Unknown Object (MLST).

cryptocoryne76 wrote:

patch

Added a patch.

Attached:

This is something that could ideally do with some unittests. Would you be able to write some for this cryptocoryne?

And I don't think it should be committed before 1.19 is branched, as it has the potential to have numerous unwanted side effects

Oh, also!

'listgrouprights-inherited' needs to be added to messages.inc and it'd be nice to have qqq documentation for it also

A quick browse over the patch suggests it's reasonably sane

-patch, -needs-review: reviewed by Sam, I concur with his analysis.

John: Would you be able to write unittests?
Also, you are welcome to use Developer access

https://www.mediawiki.org/wiki/Developer_access

to submit an updated patch as a Git branch directly into Gerrit:

https://www.mediawiki.org/wiki/Git/Tutorial

Putting your branch in Git makes it easier to review it quickly.

If I understand this request correctly, this is something that has already been done. Group's permissions can be inherited by assigning

$wgGroupPermissions['sysop']= $wgGroupPermissions['editor']
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:00 AM
Aklapper removed a subscriber: wikibugs-l-list.

https://gerrit.wikimedia.org/r/c/mediawiki/core/+/710134/ introduced $wgGroupInheritsPermissions, though Special:ListGroupRights does not display such information (it only displays all rights a group has). Should this task continue to be open for this part?