Gossamer Forum
Home : Products : DBMan : Customization :

Re: Can Admin add records when dbkey=userid?

Quote Reply
Re: Can Admin add records when dbkey=userid? In reply to
Yes. You will need to add something unique as the userid for the field, though. And you'll need to make the following change to sub add_record in db.cgi:

Change

Code:
# Set the userid to the logged in user.
($auth_user_field >= 0) and ($in{$db_cols[$auth_user_field]} = $db_userid);

to

Code:
# Set the userid to the logged in user.
unless ($per_admin) {
($auth_user_field >= 0) and ($in{$db_cols[$auth_user_field]} = $db_userid);
}


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





Subject Author Views Date
Thread Can Admin add records when dbkey=userid? bboru 1696 Oct 5, 1999, 2:25 AM
Post Re: Can Admin add records when dbkey=userid?
JPDeni 1616 Oct 5, 1999, 11:44 AM
Post Re: Can Admin add records when dbkey=userid?
bboru 1606 Oct 5, 1999, 2:03 PM
Post Re: Can Admin add records when dbkey=userid?
JPDeni 1602 Oct 6, 1999, 6:56 AM