Twitter Feed

Xataface Maillist

Sign up to receive the Xataface news letter with weekly updates and development tips.

 
Found 1 of 138 records in table Wiki
Now Showing 1 of 1

Current Record: site_with_backoffice

[Permalink]

How to build a site with an optional login form

To publish a public site with data without any need to login to access, here is the code :
function getPermissions(&$record){
    if ( isAdmin() ) return Dataface_PermissionsTool::ALL();
    else return Dataface_PermissionsTool::READ_ONLY();
} 
In this way, you still can login to administrate your data.
blog comments powered by Disqus
Powered by Xataface
(c) 2005-2017 All rights reserved