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
I found a solution. If someone looks at this post some time from now, here it is).

the problem was pretty simple (finding the solution took me two days, but this is because I don't know about perl at all). Here is the code that works:

if (($db_userid eq $rec{'Userid'}) && ($per_del)) {
print qq! [record information] !;

The problem was that I need to check if a user owns the record AND (instead of OR, notice && instead of || ) if he has delete rigths...

Hope this prevents another newbie from spending two days for such task and Thanks for the help

Subject Author Views Date
Thread $per_mod on a record by record basis patagon 2904 Jul 12, 2001, 11:00 AM
Thread Re: $per_mod on a record by record basis
LoisC 2839 Jul 12, 2001, 11:39 AM
Post Re: $per_mod on a record by record basis
Paul 2826 Jul 12, 2001, 11:41 AM
Thread Re: $per_mod on a record by record basis
patagon 2829 Jul 12, 2001, 12:18 PM
Thread Re: $per_mod on a record by record basis
patagon 2863 Jul 13, 2001, 10:54 AM
Post Re: $per_mod on a record by record basis
patagon 2774 Jul 16, 2001, 12:38 AM