CakePHP Auth仅适用于Admin Prefix

Har*_*M V 2 authentication cakephp cakephp-2.4

我有管理员前缀,我们有一个基于CMS的部分,网站所有者将能够维护应用程序内容.

有没有办法通过Auth组件自动限制这些部分.而其他部分不需要身份验证.

// other wise i will have to add a lot of actions like below
$this->Auth->allow('home', 'about', 'contacts);
Run Code Online (Sandbox Code Playgroud)

Cee*_*ram 6

$this->Auth->allow();在什么时候prefix != 'admin'