if($this->RequestHandler->isRss()){ $this->Auth->allow('index'); }else{ $this->Auth->allow( array( 'home', 'logout', 'contact', 'register', 'confirm', 'forgot_password' )); }
On Jun 24, 2:38 pm, tcornett <tcorn...@gmail.com> wrote: > I currently have my beforeFilter() function in my AppController setup > like the following for my Auth component: > > function beforeFilter() > { > $this->Auth->fields = array('username' => 'email', 'password' > => > 'passwordhash'); > $this->Auth->loginError = 'Invalid e-mail / password > combination'; > > $this->Auth->loginRedirect = array('controller' => 'pages', > 'action' > => 'index'); > $this->Auth->logoutRedirect = array('controller' => 'pages', > 'action' => 'index'); > > $this->Auth->allow( array( 'home', 'logout', 'contact', > 'register', > 'confirm', 'forgot_password' )); > > $this->Auth->authorize = 'controller'; > $this->Auth->userScope = array( 'User.confirmed' => '1' ); > $this->set('loggedIn', $this->Auth->user('id')); > $this->set('loggedInEmail', $this->Auth->user('email')); > } > > and I have just setup a RSS feed with the RSS Helper using the > tutorial in the CAKE Docs (http://book.cakephp.org/view/483/Creating- > an-RSS-feed-with-the-RssHelper). I am now running into an issue where > my Auth setup is preventing users from accessing the RSS Feed without > logging in (and therefore preventing sites like FeedBurner from > accessing it as well). > > Adding 'index.rss' to the allow array does not seem to do anything. > Are there any other suggestions as to what may solve this issue? Can > i somehow ignore or overwrite the beforeFilter() function? > > Any help is appreciated in advance. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---