How to use the Click-to-globalize "self.globalize?"-function

Hey guys.

I need to use the self.globalize? function to allow certain users to
tranlate text.

I can't make the self.globalize?-function access the session variable.
Is there a way to acces this in this specific function?

- Emil