Last modified: 2009-02-28 15:51:50 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
(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.