Last modified: 2009-03-29 21:59:17 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 T17935, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15935 - Set user rights via API
Set user rights via API
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Roan Kattouw
:
: 17825 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-11 05:39 UTC by Jesse (Pathoschild)
Modified: 2009-03-29 21:59 UTC (History)
7 users (show)

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


Attachments

Description Jesse (Pathoschild) 2008-10-11 05:39:44 UTC
Please add a user rights module to the API. A hypothetical query might look like this:
api.php
  ?action=rights
  &user=Pathoschild
  &token=foo+\\
  &add=sysop|bureaucrat

Setting rights via API would be very useful for stewards (scraping forms with JavaScript is a pain).
Comment 1 Bryan Tong Minh 2008-10-11 09:06:53 UTC
Was previously in there but has been removed, since Brion did not want an extra entry point for user rights.
Comment 2 MZMcBride 2009-03-04 09:55:31 UTC
Re-opening this for now.

Looking through the API code history, I see r29244 (a revert by Brion that removed ApiChangeRights.php). In r32522 Roan removed the module from ApiMain.php.

However, I don't see any indication in either of those revs (or on this bug) that a WONTFIX is the best option here (or desired).

Making anyone rely on screen-scraping (God's curse on humanity) should be avoided in nearly every case.

If a user can delete, protect, block, etc. with the API, changing user rights doesn't seem like too large a step up. Re-opening for re-consideration and/or clarification.
Comment 3 Splarka 2009-03-07 01:50:04 UTC
*** Bug 17825 has been marked as a duplicate of this bug. ***
Comment 4 Brion Vibber 2009-03-07 01:55:27 UTC
I withdraw my objection.
Comment 5 Roan Kattouw 2009-03-07 12:36:49 UTC
(In reply to comment #4)
> I withdraw my objection.
> 

Great, I'll write a new userrights module then.
Comment 6 Roan Kattouw 2009-03-24 16:05:02 UTC
Added in r48746
Comment 7 Jesse (Pathoschild) 2009-03-27 06:55:54 UTC
Reverted by Werdna in r48909 and r48910.
Comment 8 Roan Kattouw 2009-03-28 23:41:38 UTC
(In reply to comment #7)
> Reverted by Werdna in r48909 and r48910.
> 

Reapplied and issues addressed in r47890 and r47891
Comment 9 Jesse (Pathoschild) 2009-03-29 21:59:17 UTC
Yay, thanks (r48873, r48970, r48971, r48988, r49013, r49014, r49015).

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


Navigation
Links