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 4297 Jul 12, 2001, 11:00 AM
Thread Re: $per_mod on a record by record basis
LoisC 4221 Jul 12, 2001, 11:39 AM
Post Re: $per_mod on a record by record basis
Paul 4195 Jul 12, 2001, 11:41 AM
Thread Re: $per_mod on a record by record basis
patagon 4198 Jul 12, 2001, 12:18 PM
Thread Re: $per_mod on a record by record basis
patagon 4232 Jul 13, 2001, 10:54 AM
Post Re: $per_mod on a record by record basis
patagon 4154 Jul 16, 2001, 12:38 AM