Hello,
I'm trying to use ACL to check wether an user have access to a page by checking a rights that is set through access.xml in administrator.
Reading the platform code, it seems that I have to use JAccess to check if an user have access to something (as the old way is depreciated).
How do I use it ? I've tried to do :
JAccess::check(JFactory::getUser()->id,"core.access")
but it always return false.
When I checked in the JAccess code, it seems that the values for ACL are never loaded. 've tried to search usage for JAccess in my Joomla installation but I cannot find usage of that class.
How am I supposed to check these access in site part (not administrator) without using deprecated functions ? (I don't want to break my code when I will switch to 3.0)