Plugin authentication

I have several plugins that perform admin functions. One plugin has an admin prefix. I built out the framework of the application first, then rolled in authentication.

For some reason, when I click on a link to an admin portion of the plugin, i get the following error:

Error: A route matching “array ( ‘controller’ => ‘Users’, ‘action’ => ‘login’, ‘plugin’ => NULL, ‘prefix’ => ‘admin’, ‘_ext’ => NULL, )” could not be found.

The other plugins don’t flag this error.

The passed context is:

’_base’ => ‘/ccdl’,
’_port’ => null,
’_scheme’ => ‘http’,
’_host’ => ‘localhost’,
‘params’ => [
‘controller’ => ‘ProductCategories’,
‘pass’ => [],
‘action’ => ‘index’,
‘prefix’ => ‘admin’,
‘plugin’ => ‘Products’,
’_matchedRoute’ => ‘/products/admin/:controller’,
’_ext’ => null,
‘isAjax’ => false

I don’t know why I’m getting that error for the plugin which contains prefix routing.