Since no one have responded. I guess you'll have just to test it. Doing it in app_controller.php only can be tricky, if not impossible. Theoretically it is possible to check for current controller in app_controller.php. Not sure if that's supported in cake though. And it will be more logical if you deny access in child controller rather then in app_controller.php.
On Oct 22, 3:15 pm, Zahidur Rahman <zahid01...@gmail.com> wrote: > I also thought such way.but i wanted to do all the think in > app_controller.php. > Ok. thanks for suggestion. > > 2009/10/22 jayarjo <jaya...@gmail.com> > > > > > > hmm it's working if i use array. I am using version 1.2 > > > I hope my query was confusing for u. > > > Probably it will work either way. > > > Oh, that's interesting by the way. I guess we can allow access for > > common actions in app_controller.php, right? Correct me please if not, > > I'm total newbie on cake yet. What will happen if we deny access to a > > specific common action in a particular controller? Will this rule > > override the one defined in app_controller.php? > > > On Oct 22, 7:34 am, Zahidur Rahman <zahid01...@gmail.com> wrote: > > > hmm it's working if i use array. I am using version 1.2 > > > I hope my query was confusing for u. > > > > say i want to give access for controller articles and action detail for > > > every one > > > but say for controller posts and action detail i want to restrict for > > > registered user only. > > > then what i have to do ?? > > > > Thanks for response . > > > Regards > > > zahid > > > > On Thu, Oct 22, 2009 at 10:14 AM, 默 <mosl...@gmail.com> wrote: > > > > > Might you not need to use array, just write like blow: > > > > > $this->Auth->allow('register', 'confirm', 'forget', > > > > 'activate','reset', 'login','logout'); > > > > > Try it^^! > > > > > On 10月22日, 上午10時04分, Zahidur Rahman <zahid01...@gmail.com> wrote: > > > > > Hi , > > > > > How it is possible for me to allow plugins , controllers wise action > > > > > permission in cakephp auth allow method.. > > > > > > $this->Auth->allow(array('register', 'confirm', 'forget', > > > > > 'activate','reset', 'login','logout')); > > > > > > Thanks in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---