I have xataface installed and working but I need the logged in user and rights to check wheather he can see some other pages I have made.
I am using the function getPermissions(&$record) in my dashboard, but I am using ajax to do some other things and I need to check if the user has certain rights.
How can I get that information?
I could use a hidden field in the html file and then sent it to the server by some javascript and use it in my php files. Which show in an <Iframe>.
But how to fill the hidden field?
I have this in my dashboard file:
{use_macro file="Dataface_Main_Template.html"}
{fill_slot name="main_column"}
and at the bottom:
{/fill_slot}
{/use_macro}
Or some other solution.
Thanks in advance.
PolderBoy