I’m using the Ruport Plugin and Restful Authentication Gem. I want to
enable a report that varies depending on the user’s id. They are from
different organisations.
Restful Authentication creates a ‘current_user’ variable that can be
accessed from all other controllers. It allows me to create the views
appropriate to the user.
Unfortunately I can’t access current_user from the Ruport Controllers.
I don’t particularly want to pass an id as a parameter, as a simple
hack will then make reports intended for other partners available to
the wrong people.
Does anybody know how I might address this issue?