mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +08:00
Merge pull request #319 from slavcodev/patch-1
AccessRule match controller error.
This commit is contained in:
@@ -124,7 +124,7 @@ class AccessRule extends Component
|
||||
*/
|
||||
protected function matchController($controller)
|
||||
{
|
||||
return empty($this->controllers) || in_array($controller->id, $this->controllers, true);
|
||||
return empty($this->controllers) || in_array($controller->uniqueId, $this->controllers, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user