fieldname permissions problem

A place for users and developers of the Xataface to discuss and receive support.

fieldname permissions problem

Postby samhans » Fri Feb 17, 2012 10:47 pm

hai,
i am setting permissions to field name approver with the following code
function approver__permissions(&$record){
$the_user =$this->getUser($record);
$user=$the_user->val('identifiant');
if ( !$user) return Dataface_PermissionsTool::NO_ACCESS();

if ( $user=='approver' ){
return Dataface_PermissionsTool::ALL();
} elseif ($user=='admin'){
return Dataface_PermissionsTool::ALL();
}
else {
return Dataface_PermissionsTool::READ_ONLY();
}
}


after this the filed disappears from the form.
please help
samhans
 
Posts: 96
Joined: Fri Feb 10, 2012 1:22 am

Re: fieldname permissions problem

Postby shannah » Sun Feb 19, 2012 9:45 am

Probably you're giving the field no access permissions. Check your rules and make sure they're doing what you intend.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: fieldname permissions problem

Postby samhans » Sun Feb 19, 2012 10:01 am

thanks Steve . i have set no access.
now i have made it read only. every thing runs fine.


thanks again
samhans
 
Posts: 96
Joined: Fri Feb 10, 2012 1:22 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 26 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved