Gossamer Forum
Home : Products : DBMan : Installation :

Permission question

Quote Reply
Permission question
I have set up this database to get input from users. I want the users only to add info to my database by filling out a form. When I set $auth_no_authentication = 1 (no need to sign up) everything works fine but the problem is that I cannot log in with admin permissions. I don't get the log in screen.

When I try $auth_no_authentication = 0 (need people to signup) and I try to skip the log in screen by calling ?db=default&uid=default&add_form=1, I can fill up the form but when I submit the info I get the login screen.

How can I just give people the permission to add, and only the admin can have full permissions??

Thanks!


Quote Reply
Re: Permission question In reply to
Hi,

check out this:
http://gossamer-threads.com/perl/forum/showflat.pl?Cat=&Board=DBInst&Number=124158&page=&view=&sb=&vc=1

I hope that it helps

**************************************
on the pages in between ...
Quote Reply
Re: Permission question In reply to
JPDeni also has a great DBMan tutorial which contains a great chart for setting permissions. You may want to check this out for future reference, even if you have already found a solution in the other thread.

http://jpdeni.com/dbman

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Permission question In reply to
Thank you guys for taking the time to answer my problem.
However, after 10 hours of trying to figure out what I
was doing wrong, I found the problem.

When I custmomised my html.pl file and more specifically
html_add_form{}, i have forgotten to provide the hidden fields:

<form action="$db_script_url" method="POST">
<input type=hidden name="db" value="$db_setup">
<input type=hidden name="uid" value="$db_uid">

and every time I was submitting info I was getting the log in screen. I know a lot of people were having this problem.
Don't blame the script guys which is supereb, blame yourself. :)))

take care