When a Services resource access callback returns FALSE to deny access, the caller sees a meaningful message in $response->status_message.

But when it's the resource callback itself that calls services_error, the message is in $response->data. $response->status_message merely contains the string 'Forbidden'.

This makes debugging resources rather difficult.

Comments

kylebrowning’s picture

Issue summary: View changes
Status: Active » Postponed
kylebrowning’s picture

Frankly, I don't see this being cleaned up, If anyone wants to provide a patch please do so.

tyler.frankenstein’s picture

Status: Postponed » Closed (won't fix)