Date: 11/02/99
- Next message: kk: "[PHPLIB-DEV] cvs commit"
- Previous message: negro: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The default permissions system is nicely thought out, but sometimes you
want to add a special case that either (a) doesn't fit neatly into a strict
hierarchy or (b) relies on data in other (related) tables.
In order to implement this, the user currently has to override have_perm()
in the derived Perm class which means hijacking a lot of PHPLIB code.
(Unless there's some way to chain to the same method in the superclass that
I'm not aware of.)
It would be nice to have an entry point for custom permissions processing,
for example $perm->custom_perm(), which would return true for accepted and
false for denied. This would be called before the perms lookup in the
auth_users table. In the base class, the method would be a stub returning
true.
Michael
-- Michael Graham magog <email protected> - PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in the body, not the subject, of your message.
- Next message: kk: "[PHPLIB-DEV] cvs commit"
- Previous message: negro: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

