Subject: | Would like a hook for pre-method code |
It would be nice to be able to specify that a certain piece of code
should be run before a webservice method is called. I'm making a
JSON-RPC interface for Bugzilla, and it needs to check if the user is
logged in before calling certain methods (but other methods are exempt
from checking if the user is logged in).
For now, I can override _argument_type_check (which is the last thing
called before $procedure->{code}) but it would be nice to have some
official way of doing this.