Gossamer Forum
Home : Products : DBMan : Customization :

Permision to modify others records

Quote Reply
Permision to modify others records
I am using DBMAN as a paging tool. I just modified html.pl by adding a text box and and a submit button that hooks into various paging companies SNPP interfaces.

I have my permisions set so people can only modify there own posts. IE you add your name and pager number and can change it later (you can activate / deactivate etc)

I would like to allow some people to be able to modify the entries of of the people who are in the same category as them. (IE supervisors for that department) but not in other categories.

I also want some people to be able to modify all categories but not have admin access to change names.

Any ideas on how to do this or have others done it before.

thanks
Quote Reply
Re: [hunger] Permision to modify others records In reply to
Did you by any chance check the FAQ noted below under the section "Permissions"?

I think there was a solution similiar to this posted using the Add Permission Mod"

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Permision to modify others records In reply to
No I hadn't thanks. Just logged in and there is the following mod mentioned that looks like it will do the trick but the link to the mod is dead http://www.jpdeni.com/...ds/AddPermission.txt



there were lots of other mods mentioned for jpdeni but the site is either being revamed or hacked http://www.jpdeni.com/ was still there with two links but they didn't go anywhere.

If someone has the permision mod or the password mod could they please post a link.

Cut and paste of Mod mentioned.

Brief Description:
This mod is for anyone who wants to add another level of permission to their database. You might want to have two levels of users, with one level having more restricted access than another. This will show you how to create the extra level.
Quote Reply
Re: [hunger] Permision to modify others records In reply to
I'll send Carol an email and inform her that the /dbman directory is not displaying on her site. I know it was all working a few days ago.

I've attached a copy of the mod.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Permision to modify others records In reply to
Thanks for the mod. Wow this looks complicated. I think I may just steal the $per_view permision since I gave it everyone anyway and use this as the supervisor. There are only few entries and I won't have to modify password files.

Thanks for the quick response. Great support.
Quote Reply
Re: [hunger] Permision to modify others records In reply to
That using the view permission sort of worked (little cludgy but getting there)

Could you please attach this mod as well for me or a later version of this I was looking for a lost password mod that emails and validates and checks to see if they have already signed up and this looks perfect.

http://www.jpdeni.com/...ds/secure_lookup.htm

Looking at all the links that site that is down looks like it had all the mods :-( I do hope there is a backup.



Thanks again for the great support

PS Is the $100 a site licence, per instance licence or a per user licence
Quote Reply
Re: [hunger] Permision to modify others records In reply to
The link is actually http://www.jpdeni.com/...s/secure_lookup.html
Quote Reply
Re: [hunger] Permision to modify others records In reply to
Carol's site is back up. She was just moving her domain to a new server, but it looks like it's back up and running.

The site licence is per site, meaning you can run as many copies as you wish on the same server.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Post deleted by hunger In reply to
Quote Reply
Re: [LoisC] Permision to modify others records In reply to
The Password reset mail out mod worked extremely well This is exactly what I wanted. Installation was a breeze and well documented thanks very much . I am glad that site is back up again.

Quick question I added the get_email mod and it did not quite do what I wanted. Is there a mod that pulls the record owner out of default.db and then cross references that against the names in the default.padd then pulls the email address out of default.pass and then allows the email of the record owner (the person who has the access to update and modify it) when you do a view. (current get_email mod showed my own email not the email of the record owner)

This way if you want a record modified you simply email the person who created it and ask them to modify. saves me having to maintain the database.



THanks again for all your help
Quote Reply
Re: [hunger] Permision to modify others records In reply to
When you are adding a record it will as stated in the instructions:

Important!!
# This only gets the email address for the currently logged in user.

When the users enter their own records it should store their email in the database. Then when you view the record it will have the correct email addy. I don't think it will change if you modify a record as it for the purpose of pulling the email from the password file ONLY when you add a new record.

Hope this helps

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Permision to modify others records In reply to
Thanks, Boy do I feel silly I wasn't storing the email of the person who created the database entry just there user id so I was way over complicating the whole thing. (woops) So all I did was add email to the default.cfg and then call the get_email subroutine in the add_record with a input type="hidden" name="Email" value="$rec{'Email'}" and in the modify jsut the input type="hidden" name="Email" value="$rec{'Email'}"

Thanks again for the fantastic support