Gossamer Forum
Home : Products : DBMan : Customization :

BACK AGAIN TO LOGIN

Quote Reply
BACK AGAIN TO LOGIN
Hi,
Can anyone tell me where I'm doing something wrong? Initially the default was able to add but I put back the login for a new user; i changed the permission and it seemed to work fine ; ie the "add" shows up if you login but when i tried to view one of the items it sends me to login. What's going on? Did I miss a step.

any help will be appreciated

cheers
macagy




Quote Reply
Re: BACK AGAIN TO LOGIN In reply to
Check your permissions and also the field to associate each record with the user.

$auth_user_field = 1; ## set to the userid field

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: BACK AGAIN TO LOGIN In reply to
Great you 're there!!

Yes I have auther_user_fiels=1

permissionswise, this is what i have for a default user to view ONLY.
For registered ones View/Add

$auth_no_authentication = 0;
$auth_logging = 1;
$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);
$auth_signup = 1;
@auth_signup_permissions = (1,1,0,0,0);
$auth_modify_own = 0;
$auth_view_own = 0;
$auth_user_field = -1;

Thank you for taking the time to read and answer this thread
I'm sure as usual you've got the right answer!!
If you want you can see for yourself:
http://www.loudwind.com

cheers
macagy



Quote Reply
Re: BACK AGAIN TO LOGIN In reply to
Hi LoisC,

I want to add this in case it could help:
my link to the login had Hidden name like this:

<INPUT TYPE="hidden" NAME="db" VALUE="default">
<INPUT TYPE="hidden" NAME="uid" VALUE="">

I wanted to mention that just in case....
Hope to hear from you soon

cheers
macagy



Quote Reply
Re: BACK AGAIN TO LOGIN In reply to
Hi LoisC

I've made a typo

in my previous thread please read

$auth_user_field = 1;

and not -1

sorry for the misleading error

cheers
macagy



Quote Reply
Re: BACK AGAIN TO LOGIN In reply to
You permissions look okay, I'm really confused by saying your link contains:

<INPUT TYPE="hidden" NAME="db" VALUE="default">
<INPUT TYPE="hidden" NAME="uid" VALUE="">

Do you have an external form for logging in? Does everything work when logging in and viewing from within your database? If so, check the FAQ noted below under the section for "Forms" and view the sample login form, perhaps there is something you are missing?

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/