CodeIgniter Forums
ACL Library v1.1 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: ACL Library v1.1 (/showthread.php?tid=50457)



ACL Library v1.1 - El Forum - 03-27-2012

[eluser]Steffen Brem[/eluser]
Hello,

I am sorry that I have to repost this, but CI doesn't allow me to edit my post.

Well, I announce you guys V1.1 of my ACL Library for CodeIgniter. It has now support for VPP (Very Private Page) and it converted to the CodeIgniter method syntax. So instead of calling:
Code:
$this->acl->addRole();

You now use:

Code:
$this->acl->add_role();

This affects every method inside the library, so change this if you are using v1.0!

Another change was the VPP support, usage of this extension is very simple. Let's say that you have a role called "user", this role can ONLY edit his own profile, but not others. How can we do this? Well let's take a look:
Code:
// Of course we need his id first, lets store it in a variable..
$user_id = $this->session->userdata('user_id');

// We add the role
$this->acl->add_role('user');

// We give the role a resource
$this->acl->allow('user', 'profile', 'edit/'.$user_id); // Note the slash (/) !!!

<h2>Download ACL V1.1!</h2>


ACL Library v1.1 - El Forum - 05-08-2012

[eluser]Unknown[/eluser]
I can't to download!


ACL Library v1.1 - El Forum - 05-17-2012

[eluser]Maurice Calhoun[/eluser]
I would like to try this but the link as dead.