[eluser]robertgomes[/eluser]
[quote author="BayssMekanique" date="1364925137"]I don't think is the tool set you are looking for. Take a look at Ion_Auth. It's pretty easy to get working (but note there are some issues if you are using the nitely build), and it uses the database to store users and groups. From there, it's pretty simple to implement access control.[/quote]
I had a look at ion auth before, but my problem is, as far as I understand I need to manually check access control per function in ion auth like this
Code:
//get $groups from database
function events_list()
{
if (!$this->ion_auth->FALSE)
{
redirect(base_url() . ‘auth/login.html’, ‘refresh’);
}
else
{
//user is permitted to see the page
}
}
but with autoacl this check is done automatically, and I already have a lot of functions ready and refactoring them will be a nightmare.
The real problem for me is in this project the groups are dynamic and each group may have access to some controller/functions and not to others. So i have a tables like roles, page, role_page, where role_page contains which role has access to which page.
And thank you very much fro replying.