Keep It Simple, Stupid | |
PerlMonks |
(Ovid) Re(3): Application Access Controlby Ovid (Cardinal) |
on Sep 24, 2001 at 06:34 UTC ( [id://114235]=note: print w/replies, xml ) | Need Help?? |
mandog wrote: You might run into problems if somebody is in multiple groups with a permission granted. That's a good point. In this case, for the application I'm going to port it to, I don't mean "groups" in the Unix sense. I mean "employee type". Users of the system will be a particular type of employee, so it's a one-to-many relationship, rather than the many-to-many scenario you can have on Unix. If I needed to go that route, I would probably do a bitwise OR on the group permissions and then add the user permission.
That will print 0 (zero). However, at that point, it's probably better to move that process into a stored procedure, rather than calculate it in Perl. Cheers, Vote for paco! Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In Section
Seekers of Perl Wisdom
|
|