Last modified: 2009-02-28 15:51:50 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 T19719, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17719 - meta=userinfo&uiprop=rights shows only group rights
meta=userinfo&uiprop=rights shows only group rights
Status: RESOLVED INVALID
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: 2009-02-28 15:41 UTC by Umherirrender
Modified: 2009-02-28 15:51 UTC (History)
3 users (show)

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


Attachments

Description Umherirrender 2009-02-28 15:41:41 UTC
The meta=userinfo&uiprop=rights-Request show only the rights of the groups and not the current rights the user have.

For example: After a IP-block with 'flags="anononly,nocreate,noautoblock"' the request show this:
        <r>createaccount</r>
        <r>read</r>
        <r>edit</r>
        <r>createpage</r>
        <r>createtalk</r>
        <r>writeapi</r>
        <r>centralauth-merge</r>

But by the block I lose the right "edit", "createpage", "createtalk" and "createaccount", but it is not available through the API.

Please implement a way to get the current rights for a user. Thanks
Comment 1 Roan Kattouw 2009-02-28 15:51:50 UTC
(In reply to comment #0)
> The meta=userinfo&uiprop=rights-Request show only the rights of the groups and
> not the current rights the user have.
> 
> For example: After a IP-block with 'flags="anononly,nocreate,noautoblock"' the
> request show this:
>         <r>createaccount</r>
>         <r>read</r>
>         <r>edit</r>
>         <r>createpage</r>
>         <r>createtalk</r>
>         <r>writeapi</r>
>         <r>centralauth-merge</r>
> 
> But by the block I lose the right "edit", "createpage", "createtalk" and
> "createaccount", but it is not available through the API.
> 
Technically, you don't. According to MediaWiki you still have these rights: isAllowed('edit') returns true. However, executing certain actions requires more than just having the right rights, some require you not to be blocked or read-only mode to be off. In other words, having a certain right and being able to execute a certain action are not the same things.

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


Navigation
Links