[phplib] the perm flag bits. From: Eric Naujock (naujocke <email protected>)
Date: 10/26/00

Is there a practical limit on how many bits one can use. Am I limited to 32 permissions or can I setup over 100 different permissions for different parts of the site.

What I would like to do is be able to have an editor user who can edit the page database but be able to limit them to specific pages Based on using the perms.

As an example I have joe sales. and Mary service.

I want joe to be able to edit the pages specific to sales and Mary to be able to edit the pages in service. They both ave editor perms. But I want joe to be sales and Mary to be service.

I presume that I could setup the $permissions array ( "editor" =>4, "sales"=>8, "service"=>16)

Then I give Joe perms of 12 4+8 and I give Mary perms of 20 4+16, Do I have to stop at the 32nd bit on the perms table or can you easily setup a sub-perms so that You can have one perms table that says 4 means editor and then consult a sub-perms class to ask if they can edit sales or service or support or products?

Thanks in advance.

--------------------------------------------------------------------------------
Eric Naujock CCNA, CCDA, A+, Network +, I-Net +
Abacus II
5610 Monroe St.
Sylvania, Ohio 43560
<http://www.abacusii.com>
E-mail - naujocke <email protected>
Phone - 419-885-0082 X 241
Fax : 419-885-2717

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>