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

Commit 2a47846

Browse files
committed
Update changelog, more accurate access filter default allowRegexp property
1 parent 970ca8a commit 2a47846

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
CHANGELOG
22
=====================
33

4+
v1.1.2
5+
---------------------
6+
* AccessControl filter update default regexp to ^site, in debug mode add gii and debug modules.
7+
8+
v1.1.1
9+
---------------------
10+
* Bugfix: Permission Child/Parents boxes cleanup available options from already exists.
11+
* Bugfix: Permission Child/Parents fixed fatal error on hierarchy loop.
12+
13+
v1.1
14+
---------------------
15+
* NEW: Permissions selector as a real Tree-based selector.
16+
* Bugfix: Fix wrong unique name validations for Role and Permission creating form
17+
18+
v1.0.2
19+
---------------------
20+
* Bugfix: Routes Scanner take info from comments as well, not class definition.
21+
22+
v1.0.1
23+
---------------------
24+
* Disable inherit permissions in role permissions multi-select box.
25+
426
v1.0
527
---------------------
628
* Rbac console command to init, assign, scan roles

src/filters/RouteAccessControl.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class RouteAccessControl extends ActionFilter
2020

2121
/**
2222
* Allow route pattern
23-
* in debug mode default value is "/^(gii|debug)/i".
23+
* in debug mode default value is "/^(site|gii|debug)\//i".
2424
*
2525
* @var string
2626
*/
27-
public $allowRegexp = '/^(gii)/i';
27+
public $allowRegexp = '/^(site)\//i';
2828

2929
/**
3030
* RouteAccessControl constructor.
@@ -34,7 +34,7 @@ class RouteAccessControl extends ActionFilter
3434
public function __construct(array $config = [])
3535
{
3636
if (defined('YII_DEBUG') && YII_DEBUG) {
37-
$this->allowRegexp = '/^(gii|debug)/i';
37+
$this->allowRegexp = '/^(site|gii|debug)\//i';
3838
}
3939
parent::__construct($config);
4040
}

0 commit comments

Comments
 (0)