Gossamer Forum
Home : Products : DBMan : Discussions :

Re: $per_mod on a record by record basis

Quote Reply
Re: $per_mod on a record by record basis In reply to
Thanks for the replys

I used the following code:

if (($db_userid eq $rec{'UserID'}) || ($per_mod)) {
print " <img border=0 src=$images_url/a_sep.gif><A HREF=$db_script_link_url&modify_form_record=1&modify=$rec{'ID'}><img border=0 src=$images_url/aedit.gif alt=Edit></a> " if ($per_mod);

}

Remember that I need to show the edit link only if they have modify rigths (or admin) so I changed the first line to per_mod. Still it doesnt work. I tried many variations of this code (not that I know very much..just trial and error) like removing the second per_mod but it still shows the links.

if I leave the first code you sent me (per_admin on the first line) it seems to work because my test user does not have admin rigths and it doesn't show the link. However the user has modify rigths over this item (because it was added by this user, so excluding everything but admin is not the idea). i'll keep trying a few other options, please let me know if you see where I am failing...

Subject Author Views Date
Thread $per_mod on a record by record basis patagon 2905 Jul 12, 2001, 11:00 AM
Thread Re: $per_mod on a record by record basis
LoisC 2840 Jul 12, 2001, 11:39 AM
Post Re: $per_mod on a record by record basis
Paul 2827 Jul 12, 2001, 11:41 AM
Thread Re: $per_mod on a record by record basis
patagon 2831 Jul 12, 2001, 12:18 PM
Thread Re: $per_mod on a record by record basis
patagon 2865 Jul 13, 2001, 10:54 AM
Post Re: $per_mod on a record by record basis
patagon 2775 Jul 16, 2001, 12:38 AM