I had the same problem today, for solution i used a template operators "current_siteaccess" available in the extension swark (http://ez.no/developer/contribs/template_plugins/swark). In addition to this operator, the extension provides severals PHP's functions that are not in the list of defaults operators of ezpublish. I use it in almost all projects.
And most important "current_siteaccess" works in every template ;).
TKS.
Abdelkader RHOUATI
Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery