Authentication not working
Posted: Thu Jan 03, 2013 7:16 am
I've followed the document http://www.xataface.com/documentation/t ... ermissions but get this error:
getLoggedInUser(); if ( !isset($user) ) return Dataface_PermissionsTool::NO_ACCESS(); // if the user is null then nobody is logged in... no access. // This will force a login prompt. $role = $user->val('Role'); return Dataface_PermissionsTool::getRolePermissions($role); // Returns all of the permissions for the user's current role. } } ?>
Fatal error: Class 'conf_ApplicationDelegate' not found in C:\xampp\htdocs\Xataface\xataface-2.0alpha1\Dataface\Application.php on line 2909
I have created a conf folder under my Application and then created a file called ApplicationDelegate.php with the code pasted in.
getLoggedInUser(); if ( !isset($user) ) return Dataface_PermissionsTool::NO_ACCESS(); // if the user is null then nobody is logged in... no access. // This will force a login prompt. $role = $user->val('Role'); return Dataface_PermissionsTool::getRolePermissions($role); // Returns all of the permissions for the user's current role. } } ?>
Fatal error: Class 'conf_ApplicationDelegate' not found in C:\xampp\htdocs\Xataface\xataface-2.0alpha1\Dataface\Application.php on line 2909
I have created a conf folder under my Application and then created a file called ApplicationDelegate.php with the code pasted in.