Skip to content
Permalink
Browse files

Updated documentation

  • Loading branch information...
ivanamat committed Sep 27, 2017
1 parent a66a96a commit 2f38ea81bac10247383879e5f588d4897c2ee00c
Showing with 18 additions and 2 deletions.
  1. +6 −0 CHANGELOG.md
  2. +12 −2 README.md
@@ -1,5 +1,11 @@
# Changelog

## v1.2

### Added

* ***AclManager.ignoreActios*** Ignore all actions you don't want to add to your ACLs.

## v1.1

### Changed
@@ -30,7 +30,7 @@ Download the .zip or .tar.gz file, unzip and rename the plugin folder "cakephp3-
## Getting started

* Install the CakePHP ACL plugin by running *composer require cakephp/acl*. [Read Acl plugin documentation](https://github.com/cakephp/acl).
* Set AclManager configuration. ***AclManager.aros*** must be specified.
* Set AclManager configuration. ***AclManager.aros***. Must be specified before load plugin.
* Load the Acl and AclManager plugins in *app/config/bootstrap.php*.

```php
@@ -45,6 +45,8 @@ Plugin::load('AclManager', ['bootstrap' => true, 'routes' => true]);

### Configuration parameters

Must be specified before load plugin.

* **AclManager.aros** Required. Sets the AROs to be used. The value of this parameter must be an array with the names of the AROs to be used.
```php
# Example configuration for an schema based on Groups, Roles and Users
@@ -55,6 +57,10 @@ Configure::write('AclManager.aros', array('Groups', 'Roles', 'Users'));
# Set prefix admin ( http://www.domain.com/admin/AclManager )
Configure::write('AclManager.admin', true);
```
* **AclManager.ignoreActions** Optional. Ignore all actions you don't want to add to your ACLs. The value of this parameter must be an array of actions.
```php
Configure::write('AclManager.ignoreActions', array('isAuthorized','login','logout'));
```

## Creating ACL tables

@@ -239,7 +245,11 @@ Now navigate to http://www.domain.com/AclManager ( or http://www.domain.com/admi

## Changelog

### v1.1
### v1.2 (+v1.1)

#### Added

* ***AclManager.ignoreActios*** Ignore all actions you don't want to add to your ACLs.

#### Changed

0 comments on commit 2f38ea8

Please sign in to comment.
You can’t perform that action at this time.