Gossamer Forum
Home : Products : DBMan : Customization :

Modify??

Quote Reply
Modify??
How can I set this up so that certain people can add to the database and they can only delete there own stuff and modify there own stuff?? And anyone can view it all ??? ICQ me @ 10217446 if you can help me Smile
Quote Reply
Re: Modify?? In reply to
In your .cfg file, first, make sure you have a field for the userid. Make a note of the number of the field.

Then, under "Authorization Options" set

$auth_no_authentication = 0;
$auth_allow_default = 1;
@auth_default_permissions = (1,0,0,0,0);
$auth_modify_own = 1;
$auth_view_own = 0;
$auth_user_field = the number I told you to make note above for the userid field;

If you want people to be able to signup online for an account, set

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

If you don't want people to be able to signup online, you will have to add users via the Admin link. Give each user you add the permission to add, view, modify and delete.


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





Quote Reply
Re: Modify?? In reply to
What do I call this field in the cfg file?
Quote Reply
Re: Modify?? In reply to
The userid field? Anything you want to. Call it Userid. You just have to be consistent when you use it.


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





Quote Reply
Re: Modify?? In reply to
Oh ok so I will have to put it on the actual form to add things right?

--------------------------------------------
I am going to manually add them but how do I give them the "Give each user you add the permission to add, view, modify and delete." Also I dont see the option under admin to modify??
--------------------------------------------

[This message has been edited by elite (edited May 01, 1999).]
Quote Reply
Re: Modify?? In reply to
Did you click the link that says "Admin"? There's a place to enter the user name, the password and checkboxes to give them permissions.


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





Quote Reply
Re: Modify?? In reply to
Doubt now I get it (thanks)

------------------
elitecaraudio.com
carforums.com