Read Only database?
Archived from the Xataface Users forum.
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
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