Welcome Guest, Not a member yet? Register   Sign In
ACL for CI ?
#1

[eluser]Lord_Jago[/eluser]
Hi everybody,

I'm looking for a convenient way to write a simple ACL with CI. Here is basically what I want :

* users belongs to groups
* groups have roles
* roles let access / edit / create or delete an object or a functionality

The main point is that I would like to avoid to call in every function of my controllers, a method which checks if the user can access or not to this part of the site.
I was thinking about writing a hook (post_controller_constructor), combined to a library.

Has anybody already build something like this ? Is it possible ? What is the best way to do it ? What should I avoid to do ?


Thanks,
Julien


Messages In This Thread
ACL for CI ? - by El Forum - 04-20-2010, 03:42 PM
ACL for CI ? - by El Forum - 04-20-2010, 06:14 PM
ACL for CI ? - by El Forum - 04-29-2010, 06:59 AM
ACL for CI ? - by El Forum - 04-29-2010, 07:10 AM
ACL for CI ? - by El Forum - 04-29-2010, 07:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB