ta
On Wed, Sep 24, 2008 at 1:17 PM, RichardAtHome <[EMAIL PROTECTED]> wrote:
>
>> $this->Auth->deny('admin', 'accnt', 'faq'); // does not work
>
> This doesn't work because the 'action' for all views in the pages
> controller is 'display' not 'admin', 'accnt'
>
> $this->Auth->deny("display")
> $this->Auth->deny('admin', 'accnt', 'faq'); // does not work
This doesn't work because the 'action' for all views in the pages
controller is 'display' not 'admin', 'accnt'
$this->Auth->deny("display") would work, but it would deny ALL views
handled by the pages controller.
Your workaround
S'ok, I created 'fake' functions in the user controller, then added
the views to the users views, then take the Authentication process
from the app_controller to the users_controller..
On Wed, Sep 24, 2008 at 10:54 AM, gabriel <[EMAIL PROTECTED]> wrote:
>
> This is my current code:
> class AppCon
This is my current code:
class AppController extends Controller {
var $components = array('Auth');
function beforeFilter() {
$this->Auth->authorize = 'controller';
$this->Auth->allow('*');
$this->Auth->deny('admin', 'accnt', 'faq'); // does not work
}
function isAuth