I have only begun to formulate my ideas of a lite-weight ACL however, what I foresee is a system that uses
per-asset (class/method) athorization for groups (roles) and users.
Unfortunately, I don’t know anything about FAL. But taking the Zend Framework ACL as an example, your assets (class/method) would be resources. You can get the current class/method using this:
$this->uri->router->class;
$this->uri->router->method;
Let’s assume that the Zend ACL is in a custom library that is loaded in the constructor of a controller that requires authorization. Taking a simple example of authorizing based on the controller, within the ACL library you could check authorization like so:
$CI =& get_instance();
if (! $this->acl->isAllowed($_SESSION['username'], $CI->uri->router->class))
{
// access denied!
}
