Gossamer Forum
Home : Products : DBMan : Customization :

Quick auth question

Quote Reply
Quick auth question
Hey everyone,

I am wondering if it is possible to set up the script so that users can create a record, view only their record, modify only their record, and delete only their own record. If this can be done, can someone please tell me how? (i'm a little new to this database thing)

Thanks a lot,
Matt



------------------
High Quality Web Hosting For Everyone!!
Quote Reply
Re: Quick auth question In reply to
Sure.

In the default.cfg file include a field for the userid.

In the authorization section of the default.cfg file, set
$auth_no_authentication = 0;
$auth_modify_own = 1;
$auth_view_own = 1;
$auth_user_field = [the number of the userid field you defined in the db_def section];

If you want users to sign up online, set

$auth_signup = 1;
@auth_signup_permissions = (1,1,1,1,0);

If you don't want users to sign up online, when you add your users, check the

View
Add
Delete
Modify

checkboxes on the admin display form.


------------------
JPD