Re: user permissions
| From: | Shawn McKenzie | Date: | Thu, 27 Aug 2009 15:11:21 +0000 |
| Subject: | Re: user permissions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297378@lists.php.net to get a copy of this message | ||
John wrote:
> Hi,
>
>
>
> What is the best way to assign permissions to users?
>
>
>
> a) Each user has a list of permissions associated with that user or
>
> b) Each task/permission has a list of users that qualify or
>
> c) Have a table with a row for each user/permission combination
>
>
>
> Thanks!
>
>
>
> John
>
I'm not sure about "best", but I kind of like the way CakePHP does it:
http://book.cakephp.org/view/465/Understanding-How-ACL-Works
--
Thanks!
-Shawn
http://www.spidean.com