Gossamer Forum
Home : Products : DBMan : Customization :

Adding Resume in Author mode not showing values

Quote Reply
Adding Resume in Author mode not showing values
When I log in as admin and add a record to the database, a Resume Added screen appears and I can successfully search, modify, delete the record. In other words, it functions as it should, no problems. But when I create a user account, who's signup permissions are only add/modify, I can add a record, I receive the success page, however all the values are blank, and I cannot search/modify/delete the record just added because, obviously, there's no data for the script to find. I'm assuming it's a problem in the permissions, and I'd like to leave it to where anyone without admin status can only add/modify and moreover only add/modify their own records. my default.cfg file can be found at http://members.xoom.com/SharpMetal/default_cfg.txt
and my html.pl file can be found at http://members.xoom.com/SharpMetal/html_pl.txt. Any suggestions as to how this problem can be solved will be greatly appreciated.

Quote Reply
Re: Adding Resume in Author mode not showing values In reply to
I would think the users would also need to have permission to view the records. Although I'm not sure that is what is causing the records to not display.

Please visit JPDeni's DBMan tutorial and read under permissions, I think it will help to setup your database and permissions to do what you want.

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Adding Resume in Author mode not showing values In reply to
Your problem can be summed up by looking at your .cfg file:

$auth_modify_own = 1;
$auth_view_own = 1;
$auth_user_field = -1;

With no userid field in your database, and with $auth_view_own=1, no one but the admin will be allowed to view the record. There's no way for the database to know who owns it.

I would suggest you add a field for the userid, set $auth_user_field to the number of that field and set @auth_signup_permissions = (1,1,0,1,0);. This will allow users to add, modify and view their own records.

JPD
http://www.jpdeni.com/dbman/