Hello
We are testing gossamer for online project management. Admin gets full access, Clients are limited to what fields they can edit when they click modify.
I had this working beautifully, but here is what happens.
Admin user signs in, adds project. And can modify no problem, all data stays in tact.
Clinet user signs in, with only view/modify permissions.
I used else/if statements (see below) to hide fields we don't want the customer to edit. These statements were used in the User Friendly HTML version in the "Record Layout" statement.
PROBLEM IS: When a client modifys a record, it deletes the data from all fields where else/if's are used. I checked raw db file too...data is gone.
Here is my else/if code below. Any ideas?
|;
if ($per_admin)
{
print "<input name=Designer type=TEXT id=Name value=$rec{'Designer'}>";
}
else
{
print "<i><font color=#666666 size=1 face=Verdana, Arial, Helvetica, sans-serif>this field is only editable by admin.</font></i>";
}
print qq|
POC Web Services - www.POC.us
We are testing gossamer for online project management. Admin gets full access, Clients are limited to what fields they can edit when they click modify.
I had this working beautifully, but here is what happens.
Admin user signs in, adds project. And can modify no problem, all data stays in tact.
Clinet user signs in, with only view/modify permissions.
I used else/if statements (see below) to hide fields we don't want the customer to edit. These statements were used in the User Friendly HTML version in the "Record Layout" statement.
PROBLEM IS: When a client modifys a record, it deletes the data from all fields where else/if's are used. I checked raw db file too...data is gone.
Here is my else/if code below. Any ideas?
|;
if ($per_admin)
{
print "<input name=Designer type=TEXT id=Name value=$rec{'Designer'}>";
}
else
{
print "<i><font color=#666666 size=1 face=Verdana, Arial, Helvetica, sans-serif>this field is only editable by admin.</font></i>";
}
print qq|
POC Web Services - www.POC.us