Current Record: http://xataface.com/documentation/how-to/site_with_backoffice_How_to_build_a_site_with_a_backoffice_ #84

A site with a backoffice To create a site with a backoffice for the administrator, so that the visitors do not have to log in to read the ...

Current Record: http://xataface.com/documentation/how-to/site_with_backoffice_How_to_build_a_site_with_a_backoffice_ #84

A site with a backoffice To create a site with a backoffice for the administrator, so that the visitors do not have to log in to read the ...

A site with a backoffice

[Permalink]

A site with a backoffice

To create a site with a backoffice for the administrator, so that the visitors do not have to log in to read the pages, you add this code in the ApplicationDelegate.php file in the conf directory :

function getPermissions(&$record){
    if ( isAdmin() ) return Dataface_PermissionsTool::ALL();
    else return Dataface_PermissionsTool::READ_ONLY();
}
 
blog comments powered by Disqus
Powered by Xataface
(c) 2005-2024 All rights reserved