Antoine Musso
6a8e32e986
Single messages can be passed as strings to Api::dieUsageMsg()
...
Since r88045
2011-05-19 17:51:16 +00:00
Sam Reed
2730c42dd8
Whitespace fixes
...
Addition/tweak of documentation
2011-05-08 21:47:01 +00:00
Bryan Tong Minh
e04879cf89
Follow-up r83302: Check permissions
2011-04-14 21:09:16 +00:00
Sam Reed
f326b59650
Remove some trailing whitespace
...
Add some documentation
2011-03-24 00:43:27 +00:00
Happy-melon
81852ea1a6
Allow User::isAllowed() to take varargs. "is allowed X or Y" is by far the more common multiple permission check in core, so this is now the behaviour of isAllowed( X, Y ); also add isAllowedAll(...) for testing "is allowed X and Y". Has the nice side effect of adding visibility to a very old function.
2011-03-18 14:48:21 +00:00
Sam Reed
89656cc42c
More documentation
...
Remove trailing whitespace
2011-03-07 14:59:41 +00:00
Bryan Tong Minh
f9a36ee7bf
(bug 27018) Added action=filerevert to revert files to an old version. Copied procedure from FileRevertForm, as most of the verification procedure is simple enough to not warrant the effort of writing a dedicated backend.
...
Further changes:
* Added Status::getErrorsByType() which returns the internal error array untouched
* Added ApiResult::convertStatusToArray() which converts a Status object to something useful for the Api
2011-03-05 17:23:35 +00:00