DataGrid

I have installed DataGrid following these instructions as noted here: http://xataface.com/wiki/DataGrid
I am able to get the grid to show up for my tables successfully, but whenever I try to edit a record, it just stays red and does not update.
Here is the code in my permissions.ini file:
Here is the code in my Application Delegate:
Am I missing something here?
I am able to get the grid to show up for my tables successfully, but whenever I try to edit a record, it just stays red and does not update.
Here is the code in my permissions.ini file:
- Code: Select all
[ADMIN]
DataGrid:view_grid=1
DataGrid:update=1
Here is the code in my Application Delegate:
- Code: Select all
function getPermissions(&$record){
$auth =& Dataface_AuthenticationTool::getInstance();
$user =& $auth->getLoggedInUser();
$role = $user->val('role');
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.
if ($user->val('role') == 'ADMIN' ){
return Dataface_PermissionsTool::getRolePermissions('ADMIN'); }
else{
return Dataface_PermissionsTool::getRolePermissions($role);
// Returns all of the permissions for the user's current role.
}
}
Am I missing something here?