Gossamer Forum
Home : Products : DBMan : Customization :

Viewing own records only

Quote Reply
Viewing own records only
I would like to setup a sub (or modify one) where a user can view only their own records.
Can someone point me in the right direction?

Thanks,
Frank
Quote Reply
Re: Viewing own records only In reply to
If I understand what you want, check section
3.3 of README.txt

Quote:
* Users must log on and can only modify their own, but can view anyones record:
set $auth_no_authenticaion = 0;
$auth_allow_default = 0;
$auth_modify_own = 1;
$auth_view_own = 0;
To get where you said you want ot go, change $auth_view_own to a value of 1
Quote Reply
Re: Viewing own records only In reply to
Do you want to create a separate form that users can use to modify their records? Or are you asking about what the proper permissions should be?

If you asking about the latter, then the better source to read is JPDeni's DBMAN-ual site:

www.jpdeni.com/dbman/

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Viewing own records only In reply to
Thanks for both of your inputs! I think I've figured out what I need to do. I just set the $db_key equal to $db_userid, and it lets them only view/modify their own account information now.

print qq!| <A HREF="$db_script_link_url&modify_form=1&$db_key=$db_userid">View/Modify Account</A>
! if ($per_mod);

Thanks again Smile
Frank