Howdy all,

ACL seems to just be too complicated for what I'm doing, particularly
with all the actions I have... the table is hard to keep organized,
and it's way too hard to edit permissions.  So I'm looking for
something else.

The site I'm building has need for multiple user levels, but the user
would only need to belong to one of these levels (for example, user,
moderator, admin, site master).

Here's what I'm thinking:
An auth function I can put at the top of an action that I can either
pass a number to, or an array of numbers to, as a minimum "level" for
the user to access that action (or in the case of an array, each level
defined as true/false).  Each user would then simply have a number in
their user data that would indicate their level.

Questions:
1.  Is there anything wrong with this (other than the fact that it
goes against the grain of typical ACL)?
2.  What would be the easiest way to implement this?  Extend the auth
class with a custom class and add my functions, or a new class, or
just a function?
3.  Any other suggestions that would handle what I'm looking for that
I'm not considering?

Thank you!
xtraorange

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to