Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Update changelog, more accurate access filter default allowRegexp pro…
Browse files Browse the repository at this point in the history
…perty
  • Loading branch information
aprokopenko committed Apr 13, 2018
1 parent 970ca8a commit 2a47846
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
CHANGELOG
=====================

v1.1.2
---------------------
* AccessControl filter update default regexp to ^site, in debug mode add gii and debug modules.

v1.1.1
---------------------
* Bugfix: Permission Child/Parents boxes cleanup available options from already exists.
* Bugfix: Permission Child/Parents fixed fatal error on hierarchy loop.

v1.1
---------------------
* NEW: Permissions selector as a real Tree-based selector.
* Bugfix: Fix wrong unique name validations for Role and Permission creating form

v1.0.2
---------------------
* Bugfix: Routes Scanner take info from comments as well, not class definition.

v1.0.1
---------------------
* Disable inherit permissions in role permissions multi-select box.

v1.0
---------------------
* Rbac console command to init, assign, scan roles
Expand Down
6 changes: 3 additions & 3 deletions src/filters/RouteAccessControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class RouteAccessControl extends ActionFilter

/**
* Allow route pattern
* in debug mode default value is "/^(gii|debug)/i".
* in debug mode default value is "/^(site|gii|debug)\//i".
*
* @var string
*/
public $allowRegexp = '/^(gii)/i';
public $allowRegexp = '/^(site)\//i';

/**
* RouteAccessControl constructor.
Expand All @@ -34,7 +34,7 @@ class RouteAccessControl extends ActionFilter
public function __construct(array $config = [])
{
if (defined('YII_DEBUG') && YII_DEBUG) {
$this->allowRegexp = '/^(gii|debug)/i';
$this->allowRegexp = '/^(site|gii|debug)\//i';
}
parent::__construct($config);
}
Expand Down

0 comments on commit 2a47846

Please sign in to comment.