Hi,
I think you should be able to use the #context fields user_id and acl for other purposes.
As long your
But note that some template assume that the user_id is also a resource id.
And as such can be dereferenced to show the name of the user etc.
Regarding the user_id values, there are a couple of assumptions.
- user_id 1 is the administrator.
- when the acl is set to 'admin', we are inside a "sudo" action.
In the oauth stuff, called by the api controller I found the following:
%% TODO: Refactor: Should be done via z_notifier
This is in the place where some checks are made.
I think the oauth module should be decoupled from the api controller.
Especially as the api controller directly calls into mod_oauth.
That should solve your authentication problem.
Maybe Arjan know more about this (he added both modules/controllers).
- Marc