Gossamer Forum
Home : Products : DBMan : Discussions :

$per_mod on a record by record basis

Quote Reply
$per_mod on a record by record basis
Hi:

I am trying to let users modify their own records and it works (doesn't happen very often to me...but this works). However I have a litle problem.

I added a small (edit) (delete) link to each record so someone can modify it directly from the record. This lines display only if the user has modify rigths (or delete, using $per_mod and $per_del). By doing this I was expecting that this will display only on the records this user is able to modify but it shows on all records (regardless of weather or not they belong to that user).

I guess this is happening because $per_mod only checks if the user has modify rigths, and not modify rigths related to that particular record. Is there a way of doing something like this on a record by record basis? like $per_mod_only_if_it_is_your_record?

If this is not clear here is an example of my html.pl code:

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);

Hope this is clear...Thanks!

Subject Author Views Date
Thread $per_mod on a record by record basis patagon 2864 Jul 12, 2001, 11:00 AM
Thread Re: $per_mod on a record by record basis
LoisC 2798 Jul 12, 2001, 11:39 AM
Post Re: $per_mod on a record by record basis
Paul 2785 Jul 12, 2001, 11:41 AM
Thread Re: $per_mod on a record by record basis
patagon 2789 Jul 12, 2001, 12:18 PM
Thread Re: $per_mod on a record by record basis
patagon 2823 Jul 13, 2001, 10:54 AM
Post Re: $per_mod on a record by record basis
patagon 2733 Jul 16, 2001, 12:38 AM