Read Only database?

A place for users and developers of the Xataface to discuss and receive support.

Postby Aoirthoir » Mon Nov 06, 2006 12:38 am

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
Aoirthoir
 
Posts: 420
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Mon Nov 06, 2006 1:22 pm

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
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 27 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved