Page 1 of 1

PostPosted: Mon Nov 06, 2006 12:38 am
by Aoirthoir
I know this is mentioned elsewhere but I'm a little lost since its so late. Ive a site of my own going up tonight and I want to put a read only database on it. How can I set dataface to just display a tables data to the world, without requiring anyone to log in?

Thanks in advance for the help

PostPosted: Mon Nov 06, 2006 1:22 pm
by shannah
You can do this with permissions. Add a getPermissions() method to the application's delegate class the simply returns Dataface_PermissionsTool::READ_ONLY();

e.g:

Code: Select all
function getPermissions(&$record){

    return Dataface_PermissionsTool::READ_ONLY();
}



Best regards

Stevec