how to make app read only

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

Postby compudude86 » Tue Nov 28, 2006 11:05 am

ok, i just want to make the app read only, no access control or anything like that, how would i set that up?
compudude86
 
Posts: 59
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Tue Nov 28, 2006 11:29 am

Create a directory named 'conf' in your application's directory, and add a file named ApplicationDelegate.php with the following contents:

Code: Select all
class conf_ApplicationDelegate {
  function getPermissions(&$record){
    return Dataface_PermissionsTool::READ_ONLY();
  }
}
?>
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby compudude86 » Thu Dec 07, 2006 11:41 am

thank you, that works great.
compudude86
 
Posts: 59
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 25 guests

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