Hello,
I have a question between the difference between rights and groups in protection. When I request the protection of a page, for example http://commons.wikimedia.org/w/api.php?action=query&prop=info&inprop=protection&titles=Main%20Page the following is given for protection:
<protection> <pr type="edit" level="autoconfirmed" expiry="infinity" /> <pr type="move" level="sysop" expiry="infinity" /> </protection>
When I ask my userinfo http://commons.wikimedia.org/w/api.php?action=query&prop=revisions&meta=userinfo&uiprop=rights|groups:
<userinfo name="Bryan"> <groups> <g>checkuser</g> <g>sysop</g> </groups> <rights> [...] <r>autoconfirmed</r> <r>skipcaptcha</r> <r>emailconfirmed</r> </rights> </userinfo>
To abe able to edit the page, one needs to be 'autoconfirmed' which is a right. In order to be able to move a page, one needs to be 'sysop' which is a group. So can protection be set for both groups and rights? I'm asking because I need to check in my framework whether there are sufficient rights for an action.
Bryan
Bryan Tong Minh wrote:
Hello,
I have a question between the difference between rights and groups in protection. When I request the protection of a page, for example http://commons.wikimedia.org/w/api.php?action=query&prop=info&inprop=protection&titles=Main%20Page the following is given for protection:
<protection> <pr type="edit" level="autoconfirmed" expiry="infinity" /> <pr type="move" level="sysop" expiry="infinity" /> </protection>
When I ask my userinfo http://commons.wikimedia.org/w/api.php?action=query&prop=revisions&meta=userinfo&uiprop=rights|groups:
<userinfo name="Bryan"> <groups> <g>checkuser</g> <g>sysop</g> </groups> <rights>
[...] <r>autoconfirmed</r> <r>skipcaptcha</r> <r>emailconfirmed</r> </rights> </userinfo>
To abe able to edit the page, one needs to be 'autoconfirmed' which is a right. In order to be able to move a page, one needs to be 'sysop' which is a group. So can protection be set for both groups and rights? I'm asking because I need to check in my framework whether there are sufficient rights for an action.
Bryan
Protection is about rights (e.g. autoconfirmed). "sysop" is an exception, and is actually a protection for the holders of the "protect" permission.
Bryan Tong Minh schreef:
To abe able to edit the page, one needs to be 'autoconfirmed' which is a right. In order to be able to move a page, one needs to be 'sysop' which is a group. So can protection be set for both groups and rights? I'm asking because I need to check in my framework whether there are sufficient rights for an action.
Bryan
Actually, sysop is both a right *and* a group. The same is true for 'bot'.
Roan Kattouw (Catrope)
On Jan 14, 2008 3:20 PM, Roan Kattouw roan.kattouw@home.nl wrote:
Bryan Tong Minh schreef:
To abe able to edit the page, one needs to be 'autoconfirmed' which is a right. In order to be able to move a page, one needs to be 'sysop' which is a group. So can protection be set for both groups and rights? I'm asking because I need to check in my framework whether there are sufficient rights for an action.
Bryan
Actually, sysop is both a right *and* a group. The same is true for 'bot'.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Then why is sysop only in groups in the api call?
Bryan
Roan Kattouw writes:
Bryan Tong Minh schreef:
To abe able to edit the page, one needs to be 'autoconfirmed' which is a right. In order to be able to move a page, one needs to be 'sysop' which is a group. So can protection be set for both groups and rights? I'm asking because I need to check in my framework whether there are sufficient rights for an action.
Bryan
Actually, sysop is both a right *and* a group. The same is true for 'bot'.
Roan Kattouw (Catrope)
No, there's no right called "sysop". "sysop" protection level is rewitten as "protect" when permission check on permission check. --VasilievVV
On Jan 14, 2008 3:27 PM, VasilievVV vasilvv@gmail.com wrote:
Roan Kattouw writes:
Bryan Tong Minh schreef:
To abe able to edit the page, one needs to be 'autoconfirmed' which is a right. In order to be able to move a page, one needs to be 'sysop' which is a group. So can protection be set for both groups and rights? I'm asking because I need to check in my framework whether there are sufficient rights for an action.
Bryan
Actually, sysop is both a right *and* a group. The same is true for 'bot'.
Roan Kattouw (Catrope)
No, there's no right called "sysop". "sysop" protection level is rewitten as "protect" when permission check on permission check. --VasilievVV
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Is that a special exception? Or is it configurable?
Bryan
mediawiki-api@lists.wikimedia.org