https://bugzilla.wikimedia.org/show_bug.cgi?id=24236
Summary: API : include add/remove permissions associated with
user groups
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
At the moment, one can use meta=userinfo&uiprop=changeablegroups to determine
which groups the current user can add/remove.
<userinfo>
<changeablegroups>
<add>
<g>bot</g>
</add>
<remove>
<g>bot</g>
</remove>
<add-self />
<remove-self />
</changeablegroups>
</userinfo>
However, meta=siteinfo&siprop=usergroups only lists the rights associated with
each group. Thus there is no way to see which add/remove permissions are
granted by groups you are not in.
<group name="sysop">
<rights>
<permission>block</permission>
<permission>createaccount</permission>
<permission>delete</permission>
...
</rights>
</group>
Contrast this with [[Special:ListGroupRights]], which as well as the rights of
each group also lists what the group members can add/remove.
One way to address this would be to include "add", "remove", "add-self" and
"remove-self" nodes in the output of siprop=usergroups, as is done with
uiprop=changeablegroups, e.g.
<group name="sysop">
<rights>
<permission>block</permission>
<permission>createaccount</permission>
<permission>delete</permission>
...
</rights>
<add>
<g>bot</g>
</add>
<remove>
<g>bot</g>
</remove>
<add-self />
<remove-self />
</group>
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l