Merge pull request #319 from slavcodev/patch-1

AccessRule match controller error.
This commit is contained in:
Qiang Xue
2013-05-20 06:37:42 -07:00

View File

@@ -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);
}
/**