Skip to content

easy-cloud/EasyACL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A advanced but simple ACL module for Zend framework 2 and Doctrine 2!

You can set rights per group or user. Everything is loaded from Doctrine.

Navigation support added.

Add "easycloud/easyacl": "dev-master" to composer.json and run update.

Then import this in MySQL:

INSERT INTO user (id , name , surname , email , password)VALUES (NULL , 'admin', 'admin', 'admin@admin.com', 'password'); INSERT INTO roles (id , user_id , group_id , name , allowed_all)VALUES (NULL , '1', NULL , 'Master', 'a:1:{i:0;s:6:"master";}');

You can get the password by logging in without an account in the database(it will echo itself!).

To use the Navigation rigths, add the resource to the navigigation item! Example: 'navigation' => array( 'default' => array( 'acl/user' => array( 'label' => 'Users', 'route' => 'acl/users', 'resource' => 'EasyACL\User\index', ), 'acl/group' => array( 'label' => 'Groups', 'route' => 'acl/groups', 'resource' => 'EasyACL\Group\index', ), 'acl/right' => array( 'label' => 'Roles', 'route' => 'acl/roles', 'resource' => 'EasyACL\Roles\index', ), 'acl/permission' => array( 'label' => 'Permission', 'route' => 'acl/permission', 'resource' => 'EasyACL\Permission\index', ), 'acl/logout' => array( 'label' => 'Log out', 'route' => 'acl/logout', 'resource' => 'EasyACL\User\logout', ), ), ),

About

Zend and Doctrine ACL Module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages