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
Reference from FAQ/Help under "Syntax":

Want only the owner of the record and those with admin permissions to see a field(s)

Use:
|;
if (($db_userid eq $rec{'UserID'}) || ($per_admin)) {
print qq| [The record information] |; <BR>
}
print qq|

So in your case try using:

|;
if (($db_userid eq $rec{'UserID'}) || ($per_admin)) {

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);
}
print qq|

This would allow only the record holder and admin to view the links.

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Subject Author Views Date
Thread $per_mod on a record by record basis patagon 4357 Jul 12, 2001, 11:00 AM
Thread Re: $per_mod on a record by record basis
LoisC 4280 Jul 12, 2001, 11:39 AM
Post Re: $per_mod on a record by record basis
Paul 4254 Jul 12, 2001, 11:41 AM
Thread Re: $per_mod on a record by record basis
patagon 4257 Jul 12, 2001, 12:18 PM
Thread Re: $per_mod on a record by record basis
patagon 4291 Jul 13, 2001, 10:54 AM
Post Re: $per_mod on a record by record basis
patagon 4213 Jul 16, 2001, 12:38 AM