Gossamer Forum
Home : Products : DBMan : Customization :

Admin & default user permissions

Quote Reply
Admin & default user permissions
An old chestnut perhaps - but I cannot see the answer anywhere !

I think my planned setup is fairly common - only me (as admin) will be able to add/modify/delete records, and anyone browsing will be able to view/search. So - no registered users at all other than admin.

I have the permissions set up so that a default user is handled properly, but cannot see how I (as admin) get access to add records etc. Where can I get access to a form, or how do I log in, when I have effectively disabled authorisation to suit my default user model?

Am I missing something obvious?

TIA

Stewart
Quote Reply
Re: Admin & default user permissions In reply to
Hi circustuff,


tried to do something else,
my way is to enter the database from a seperate html page with two different links one for visitors one for admin
my settings in *.cfg:

$auth_no_authentication = 0;



$auth_allow_default = 1;

@auth_default_permissions = (1,0,0,0,0)

On the seperated html, i created two links

one for Searching one for admin
that for searching:
<a href="http://your_server/cgi-bin/dbman.cgi?db=default&uid=default&view_search=1">

that for admin:
<a href="http://your_server/cgi-bin/dbman.cgi?&db=default">

db=default: take the name of your *.cfg

Searching is working without login.

Admin link works with login_form.

But I think this is only a workaround maybe the very well trained people on the board know something better.
But the script will only print the "non-searching" links if you have permissions to add,delete,..., so default users with only view permission won't get the links....