When requesting a token via action=tokens when not logged in
I get the response
{
"warnings": {
"tokens": { "*": "Action 'import' is not allowed for the current user" }
},
"tokens": [
]
}
To be consistent with the rest of the api, this should return a json object with an error key so that it is clear that this is an error.
Version: unspecified
Severity: minor