Reputation: 2168
I need to find a flexible solution for access control in PHP. In the past I have created a mapping between pages and the minimum access level required, and that has worked well in cases where access levels have been clear cut and hierarchical. I am working on a project now where I still need access control, but without the luxury of clear cut hierarchical access levels.
Basically, we have a site which we want to allow our customers to brand as their own using custom templates. Each site will have the exact same pages, but individual sites may have between 1 and 4 access levels, and there is no clearly defined hierarchy that the pages may fit in to which can be used to define permissions.
I found some documentation for a library called Flaxis, which looked really good, but unfortunately the library itself seems to be missing.
Does anyone have any experience with a library which can meet my needs, or have any ideas for how I might handle these flexible permissions?
Upvotes: 2
Views: 392
Reputation: 2168
As it turns out, sometimes the best solution is to just build it yourself. I ended up creating and open-sourcing PHP-Bouncer.
Upvotes: 1
Reputation: 2749
You can use Zend_Acl as a standalone component just include the code and use it
Upvotes: 0