Welcome Guest, Not a member yet? Register   Sign In
Which is best for ACL?
#12

[eluser]Rick Jolly[/eluser]
[quote author="Monotoba" date="1189297507"]
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.
[/quote]
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:
Code:
$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:
Code:
$CI =& get_instance();
if (! $this->acl->isAllowed($_SESSION['username'], $CI->uri->router->class))
{
   // access denied!
}


Messages In This Thread
Which is best for ACL? - by El Forum - 09-07-2007, 01:45 PM
Which is best for ACL? - by El Forum - 09-07-2007, 03:16 PM
Which is best for ACL? - by El Forum - 09-07-2007, 03:28 PM
Which is best for ACL? - by El Forum - 09-07-2007, 04:23 PM
Which is best for ACL? - by El Forum - 09-07-2007, 04:49 PM
Which is best for ACL? - by El Forum - 09-07-2007, 08:11 PM
Which is best for ACL? - by El Forum - 09-08-2007, 05:56 AM
Which is best for ACL? - by El Forum - 09-08-2007, 06:39 AM
Which is best for ACL? - by El Forum - 09-08-2007, 07:36 AM
Which is best for ACL? - by El Forum - 09-08-2007, 11:27 AM
Which is best for ACL? - by El Forum - 09-08-2007, 01:25 PM
Which is best for ACL? - by El Forum - 09-08-2007, 02:22 PM
Which is best for ACL? - by El Forum - 09-08-2007, 02:42 PM
Which is best for ACL? - by El Forum - 09-08-2007, 02:51 PM
Which is best for ACL? - by El Forum - 09-08-2007, 03:42 PM
Which is best for ACL? - by El Forum - 09-08-2007, 04:04 PM
Which is best for ACL? - by El Forum - 09-08-2007, 04:29 PM
Which is best for ACL? - by El Forum - 09-08-2007, 09:10 PM
Which is best for ACL? - by El Forum - 09-08-2007, 10:33 PM
Which is best for ACL? - by El Forum - 09-09-2007, 05:11 AM
Which is best for ACL? - by El Forum - 09-09-2007, 03:51 PM
Which is best for ACL? - by El Forum - 09-09-2007, 04:41 PM
Which is best for ACL? - by El Forum - 11-13-2007, 02:01 PM
Which is best for ACL? - by El Forum - 11-13-2007, 02:34 PM
Which is best for ACL? - by El Forum - 11-13-2007, 03:15 PM
Which is best for ACL? - by El Forum - 12-01-2007, 03:50 PM
Which is best for ACL? - by El Forum - 12-01-2007, 04:54 PM
Which is best for ACL? - by El Forum - 12-01-2007, 05:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB