Fixed CS issues. Fixed bug - added missing condition to find.

This commit is contained in:
sam-at-github 2014-03-29 22:36:06 +11:00
parent a3fe7cd245
commit 863a8555d9

View file

@ -153,10 +153,10 @@ class AclShell extends AppShell {
$identifier = $this->parseIdentifier($this->args[1]);
if (is_string($identifier)) {
$identifier = ['alias' => $identifier];
$identifier = array('alias' => $identifier);
}
if($this->Acl->{$class}->find('all')) {
if ($this->Acl->{$class}->find('all', ['conditions' => $identifier])) {
if (!$this->Acl->{$class}->deleteAll($identifier)) {
$this->error(__d('cake_console', 'Node Not Deleted. ') . __d('cake_console', 'There was an error deleting the %s.', $class) . "\n");
}