Part of the EllisLab Network
   
 
Ar_acl Easy2Use Access Control Library++ With Very Private Page (VPP) Control
Posted: 02 November 2009 12:21 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  67
Joined  03-19-2008

Ar-acl

Introduction

Ar-acl is Access Control Library for codeigniter. This library works with two methods.

  1. User access control by role, e.g:
      a) “admin/” is admin page that can be accessed only by admin.
      b) “salary/” is employer’s salary page that can be edited by hrd dept and accounting dept.
  2. User access control by Very Private Page (VPP) check, e.g:
      a) “profile/edit/john.r” is a page to edit profile information that can be edited ONLY by user who logged on with username “john.r”.

Features

  1. Restrict user based on role group.
  2. Restrict user to access, edit or delete other user private page.

Advantages

  1. No database needed. Work faster.
  2. No need to modify controller. This library is autoloaded.

Set Up

  1. Add ar_acl to the autoload libraries to use it.

$autoload['libraries'] = array('ar_acl');

  2. Copy folder config and libaries to application folder.

Demo

  * If NOT Using Modular Separation (ME, HMVC, Matchbox, or others)
      1. Copy profile.php and salary.php to your controllers.
      2. Try to access all methods and see the message. e.g. http://localhost/yourbase-url/profile/edit/john; http://localhost/yourbase-url/profile/edit/15; http://localhost/yourbase-url/profile/view/john
  * If USING Modular Separation (ME, HMVC, Matchbox, or others)
      1. Copy test folder to your modules folder.
      2. Try to access all methods and see the message. e.g. http://localhost/yourbase-url/test/profile/edit/john; http://localhost/yourbase-url/test/profile/edit/15; http://localhost/yourbase-url/test/profile/view/john

Download

The download also includes test module for test purpose. http://code.google.com/p/ar-acl/

Copyright notes:
This work is modification from Wiredesignz & Maxximus’s MX_acl (http://codeigniter.com/forums/viewthread/111916)

 Signature 

Ar_acl  - Access Control Library++ with Very Private Page (VPP) Control
Autocrumb - The simplest breadcrumb helper ever

Profile
 
 
Posted: 02 November 2009 02:42 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  104
Joined  01-21-2009

A good ACL tool is a must have for any framework.  Frankly, I have yet to find one for CodeIgniter that I like.  I will look into this one more, but a quick glance shows some good ideas.  A side note:  I love how your module is called ‘testacl’. Whether intentional or not, that’s pretty hilarious.

 Signature 

Do you use CSS or JavaScript? Carabiner makes your life easier.  I promise.

CI-Disqus makes playing with the Disqus API a snap.

Profile
 
 
Posted: 02 November 2009 08:50 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  67
Joined  03-19-2008
tonydewan - 02 November 2009 02:42 PM

A side note:  I love how your module is called ‘testacl’. Whether intentional or not, that’s pretty hilarious.

Maybe I should change the letter case to TestACL for better meaning.
Cheers

 Signature 

Ar_acl  - Access Control Library++ with Very Private Page (VPP) Control
Autocrumb - The simplest breadcrumb helper ever

Profile
 
 
Posted: 03 November 2009 03:59 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  399
Joined  03-28-2008
ardinotow - 02 November 2009 08:50 PM
tonydewan - 02 November 2009 02:42 PM

A side note:  I love how your module is called ‘testacl’. Whether intentional or not, that’s pretty hilarious.

Maybe I should change the letter case to TestACL for better meaning.
Cheers

Or just spell it Tesicle? I think that Tony meant the choice of name which sound like male genitalia… smile

 Signature 

———————————————————————————————————————————-
Imac 24” C2D 3.06Ghz / 4GB RAM / Geforce 8800GS 512MB
Macbook Pro 15” C2D 2.53Ghz / 4GB RAM / NVIDIA GeForce 9400M + 9600M GT 512MB
iPhone 3G 16Gb Black

http://www.rockkarusellen.se

Profile
 
 
Posted: 03 November 2009 04:12 AM   [ Ignore ]   [ # 4 ]  
Sr. Research Associate
RankRankRankRankRank
Total Posts:  2634
Joined  06-10-2007

Using portions of my code from MX_ACL Access Control library (see my signature) requires that you acknowledge copyright. Please do so. Thanks.

There is nothing worse than having your work taken and attributed to someone else.

 Signature 

URI Language Identifier | Modular Extensions - PHP5 | Modular Separation - PHP5 | Widget plugin | Access Control library

Profile
 
 
Posted: 03 November 2009 11:21 AM   [ Ignore ]   [ # 5 ]  
Grad Student
Avatar
Rank
Total Posts:  87
Joined  11-13-2008
Johan André - 03 November 2009 03:59 AM
ardinotow - 02 November 2009 08:50 PM
tonydewan - 02 November 2009 02:42 PM

A side note:  I love how your module is called ‘testacl’. Whether intentional or not, that’s pretty hilarious.

Maybe I should change the letter case to TestACL for better meaning.
Cheers

Or just spell it Tesicle? I think that Tony meant the choice of name which sound like male genitalia… smile

well, it’s a good thing it isn’t MY_testacl

Profile
 
 
Posted: 03 November 2009 01:00 PM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  399
Joined  03-28-2008
bEz - 03 November 2009 11:21 AM
Johan André - 03 November 2009 03:59 AM
ardinotow - 02 November 2009 08:50 PM
tonydewan - 02 November 2009 02:42 PM

A side note:  I love how your module is called ‘testacl’. Whether intentional or not, that’s pretty hilarious.

Maybe I should change the letter case to TestACL for better meaning.
Cheers

Or just spell it Tesicle? I think that Tony meant the choice of name which sound like male genitalia… smile

well, it’s a good thing it isn’t MY_testacl

Well, you can easily use the config.php to setup a different prefix. What about:

YOUR_testacl
or
OLD_testacl
or
SOMEONE_ELSES_testacl

Pick your flavor! smile

 Signature 

———————————————————————————————————————————-
Imac 24” C2D 3.06Ghz / 4GB RAM / Geforce 8800GS 512MB
Macbook Pro 15” C2D 2.53Ghz / 4GB RAM / NVIDIA GeForce 9400M + 9600M GT 512MB
iPhone 3G 16Gb Black

http://www.rockkarusellen.se

Profile
 
 
Posted: 03 November 2009 04:13 PM   [ Ignore ]   [ # 7 ]  
Grad Student
Avatar
Rank
Total Posts:  67
Joined  03-19-2008

I just change the new module name so it won’t be “hilarious” smile

 Signature 

Ar_acl  - Access Control Library++ with Very Private Page (VPP) Control
Autocrumb - The simplest breadcrumb helper ever

Profile
 
 
Posted: 03 November 2009 04:17 PM   [ Ignore ]   [ # 8 ]  
Grad Student
Avatar
Rank
Total Posts:  67
Joined  03-19-2008
wiredesignz - 03 November 2009 04:12 AM

Using portions of my code from MX_ACL Access Control library (see my signature) requires that you acknowledge copyright. Please do so. Thanks.

There is nothing worse than having your work taken and attributed to someone else.

Sorry my friend, I didn’t notice that before. I have change the copyright as you stated in MX_acl. The idea is from your work. Thanks.

 Signature 

Ar_acl  - Access Control Library++ with Very Private Page (VPP) Control
Autocrumb - The simplest breadcrumb helper ever

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 119966 Total Logged-in Users: 54
Total Topics: 126092 Total Anonymous Users: 1
Total Replies: 663283 Total Guests: 524
Total Posts: 789375    
Members ( View Memberlist )