Last modified: 2010-08-06 19:25:48 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 T26236, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24236 - API : include add/remove permissions associated with user groups
API : include add/remove permissions associated with user groups
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-02 15:52 UTC by Gurch
Modified: 2010-08-06 19:25 UTC (History)
4 users (show)

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


Attachments

Description Gurch 2010-07-02 15:52:05 UTC
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>
Comment 1 X! 2010-08-06 19:25:48 UTC
r70587

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


Navigation
Links