Welcome Guest, Not a member yet? Register   Sign In
ZendACL implemented
#1

[eluser]wr5aw[/eluser]
I've just implemented ZendAcl as a library that very elegantly handles fine-grained access control. I started with this - http://framework.zend.com/wiki/display/Z...se+backend then created a CI class that extends ZendAcl. The class autoloads and creates an acl based on the user (or Guest).

Now, anywhere in the app, I can do this to control access:
Code:
if (!$this->acl->allowsUser('access to', 'something')
{
    // set an error message then
    redirect('somewhere');
}
I already had a functional basic authentication setup that serves my needs. I just needed to add finer control without having to do any heavy lifting. The Zend solution worked perfectly. It's very light-weight, easy to maintain, and has virtually limitless possibilities. I'm sure there were already some solutions in the wild but it suited my needs and works great.

It's getting late or I'd spin up something for the wiki. When I get a chance, I'll add something to the approaches section. Stay tuned.
#2

[eluser]Unknown[/eluser]
Do you have any plans to post this library? I'd be very interested in seeing it.
#3

[eluser]P.T.[/eluser]
I am curious too Smile




Theme © iAndrew 2016 - Forum software by © MyBB