//Set restrictions as below Note dont use preceeding or leading slashes
var $othAuthRestrictions =array(
                'add',
                'edit',
                'delete'
        );

function beforeFilter()
        {
                        parent::beforeFilter();
        }

function delete($id) {
                $this->Article->del($id);
                //$this->flash('Article deleted.',
$this->viewPath.'/articles/index');
                $this->redirect('/articles/index');
        }

permissions are
controller/delete
controller/add
controller/edit

add and edit work perfect but delete altho restricted can be called by
anyone
as you can see from the above code i have tested it with a flash but
its still being deleted, before the redirect to the login ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to