Welcome Guest, Not a member yet? Register   Sign In
autoACL Easy2Use Access Control Library++ With Very Private Page (VPP) Control
#1

[eluser]ardinotow[/eluser]
autoACL

Introduction

autoACL 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 autoacl to the autoload libraries to use it.
Code:
$autoload['libraries'] = array('autoacl');

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://bitbucket.org/ardinotow/autoacl/

Copyright notes:
This work is modification from Wiredesignz & Maxximus's MX_acl (http://ellislab.com/forums/viewthread/111916)
#2

[eluser]tonydewan[/eluser]
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.
#3

[eluser]ardinotow[/eluser]
[quote author="tonydewan" date="1257212555"]A side note: I love how your module is called 'testacl'. Whether intentional or not, that's pretty hilarious.[/quote]
Maybe I should change the letter case to TestACL for better meaning.
Cheers
#4

[eluser]Johan André[/eluser]
[quote author="ardinotow" date="1257234624"][quote author="tonydewan" date="1257212555"]A side note: I love how your module is called 'testacl'. Whether intentional or not, that's pretty hilarious.[/quote]
Maybe I should change the letter case to TestACL for better meaning.
Cheers[/quote]

Or just spell it Tesicle? I think that Tony meant the choice of name which sound like male genitalia... Smile
#5

[eluser]wiredesignz[/eluser]
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.
#6

[eluser]bEz[/eluser]
[quote author="Johan André" date="1257260364"][quote author="ardinotow" date="1257234624"][quote author="tonydewan" date="1257212555"]A side note: I love how your module is called 'testacl'. Whether intentional or not, that's pretty hilarious.[/quote]
Maybe I should change the letter case to TestACL for better meaning.
Cheers[/quote]

Or just spell it Tesicle? I think that Tony meant the choice of name which sound like male genitalia... Smile[/quote]

well, it's a good thing it isn't MY_testacl
#7

[eluser]Johan André[/eluser]
[quote author="bEz" date="1257286873"][quote author="Johan André" date="1257260364"][quote author="ardinotow" date="1257234624"][quote author="tonydewan" date="1257212555"]A side note: I love how your module is called 'testacl'. Whether intentional or not, that's pretty hilarious.[/quote]
Maybe I should change the letter case to TestACL for better meaning.
Cheers[/quote]

Or just spell it Tesicle? I think that Tony meant the choice of name which sound like male genitalia... Smile[/quote]

well, it's a good thing it isn't MY_testacl[/quote]

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
#8

[eluser]ardinotow[/eluser]
I just change the new module name so it won't be "hilarious" Smile
#9

[eluser]ardinotow[/eluser]
[quote author="wiredesignz" date="1257261170"]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.[/quote]
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.
#10

[eluser]robertgomes[/eluser]
I know autoacl doesn't require a database and is extremely simple to use and I am still getting the hang of it, but I have a school project where I will need to store users and groups and access rights in database, I need to load the config from the database somehow instead of the config file, so can it be done? can anyone help? Thanks in advance.




Theme © iAndrew 2016 - Forum software by © MyBB