4 replies
by ngu78 Accepted solution
by toivo talikka Accepted solution
You may need to build the controls to the logic in your code. Even if you could modify the access rights at the field level (depending on the database system), it may be too tricky to try to change the rights on the fly.
You may need a subroutine similar to this (in PHP):
function check_update($consultant_in_table, $logged_in_user, $administrator) {
$allow_update = FALSE;
if ($consultant_in_table == "") {
$allow_update = TRUE;
}
if ($logged_in_user == $administrator) {
$allow_update = TRUE;
}
return $allow_update;
Your code would set the input variables and test the value returned by the function when it needs to decide if the user can change the field.
by ngu78 Accepted solution
by toivo talikka Accepted solution
This discussion is closed to new replies.
Trending Desktop posts
Sort by Trending