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 :
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