Date: 10/24/99
- Next message: Kristian Koehntopp: "Re: [PHPLIB] 2D Permissions"
- Previous message: SANIsoft: "[PHPLIB] 2D Permissions"
- In reply to: SANIsoft: "[PHPLIB] 2D Permissions"
- Next in thread: Kristian Koehntopp: "Re: [PHPLIB] 2D Permissions"
- Reply: Kristian Koehntopp: "Re: [PHPLIB] 2D Permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Try this. First assign a unique (in the binary sense) base number to each
node.
Rep A1 = 1
Rep A2 = 2
Rep B1 = 4
Rep B2 = 8
Sales Mgr A = 16
Sales Mgr B = 32
Area Mgr = 64
Now do the math.
Area Mgr has access to everything so: 64+32+16+8+4+2+1 = 127
Sales Mgr A only has access to things in area A so: 16+2+1 = 19
Sales Mgr B only has access to things in area B so: 32+4+8 = 44
Each Rep has access only to their things so assign them only the base
number, i.e. Rep B2 = 8.
These are the values you would assign in your Perms calls.
Did I miss something?
-- Jesse Swensen swensenj <email protected>> From: "SANIsoft" <swati <email protected>> > Reply-To: "SANIsoft" <swati <email protected>> > Date: Sun, 24 Oct 1999 17:42:42 +0530 > To: <phplib <email protected>> > Subject: [PHPLIB] 2D Permissions > > hello kind folks, > > I dont know if this would be the right terminology. but I need to have > permissions in the horizontal as well vertical direction in a tree like > hierarchy of users. > > to be more elaborate. > ------------------------------- > Area Sales Manager > Sales Manager A > Sales Rep A1 > Sales Rep A2 > Sales Manager B > Sales Rep B1 > Sales Rep B2 > ------------------------------- > > Area Sales Manager should be able to edit/delete all record - easy > > But Sales Manager A Should not be able to edit/delete records of Sales Rep > B1, B2 > or Sales Manager B > > Thus each member should be able to edit/delete only down the branch which he > is on. > > Thanks in advance. > > Tarique > > > Visit our Flash Site: http://www.sanisoft-india.com > Send a Gift to Nagpur http://www.nagpurcity-e.com > Free Email, Calendar, Coupons: http://www.lifemadesimple.com > > > - > PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. > To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in > the body, not the subject, of your message. >
- PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.
- Next message: Kristian Koehntopp: "Re: [PHPLIB] 2D Permissions"
- Previous message: SANIsoft: "[PHPLIB] 2D Permissions"
- In reply to: SANIsoft: "[PHPLIB] 2D Permissions"
- Next in thread: Kristian Koehntopp: "Re: [PHPLIB] 2D Permissions"
- Reply: Kristian Koehntopp: "Re: [PHPLIB] 2D Permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

