cakephp/cakephp — pull request #402 by rintaun (2012-01-12 01:57:06+00:00)
Title: $action in AclShell::_getParams() should default to '*', not NULL

When called as in the following example, `$action` is passed to AclComponent as `null`, which AclComponent then complains about, as it is expecting a value. Example:

> cake2 acl check warriors Weapons

This produces the following result:

---------------------------------------------------------------
App : app
Path: /home/rintaun/app/
---------------------------------------------------------------
Notice Error: ACO permissions key %s does not exist in DbAcl::check() in
[/usr/local/share/cakephp2/lib/Cake/Controller/Component/AclComponent.php,
line 313]

warriors is not allowed.

It may also be prudent to modify AclComponent, line 312, to include the case of `empty($action)`.