Log message #114314

# At Username Text
# Aug 9th 2008, 19:53 Spoom but i wasn't before
# Aug 9th 2008, 19:53 Spoom i am now, since i forgot to remove the domain when i pasted the access log ;^)
# Aug 9th 2008, 19:51 Matt1 Spoom: you using an some access control ?
# Aug 9th 2008, 19:50 Spoom any ideas with the ajax pagination?
# Aug 9th 2008, 19:50 Jezek hmm
# Aug 9th 2008, 19:49 Matt1 how can I use unique with find('all')
# Aug 9th 2008, 19:49 kalileo Jezek: there is sample code for that in the multitude of auth tutorials out there
# Aug 9th 2008, 19:48 Jezek ok
# Aug 9th 2008, 19:47 kalileo Jezek: as Matt1 proposed, check for admin access and then allow or dissalow the current action
# Aug 9th 2008, 19:47 Jezek but it keeps redirecting me
# Aug 9th 2008, 19:46 Spoom raw access log shows this: 71.74.111.184 - - [09/Aug/2008:20:55:13 -0400] "POST /questionnaire/questionnaire/questions/index/page:2 HTTP/1.1" 403 - "http://jamiearseneault.com/questionnaire/questionnaire/questions/index/page:1" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008062009 (Gentoo) Firefox/3.0"
# Aug 9th 2008, 19:45 Jezek but i have so many different action names. and i dont want to have to add a new action to the list everytime i create one
# Aug 9th 2008, 19:44 kalileo (assuming you use auth in controller mode)
# Aug 9th 2008, 19:44 kalileo Jezek: dunno, never used the wildcard. I found that it was helpful to allow specific actions, such as display
# Aug 9th 2008, 19:41 Jezek doesn't that allow any page?
# Aug 9th 2008, 19:41 kalileo Jezek: you just said you have not allowed any page, thus you will be stuck at the login page forever ;)
# Aug 9th 2008, 19:40 Jezek $this->Auth->allow = array('*');
# Aug 9th 2008, 19:40 kalileo Jezek: then do that, allowing the action if it is not an admin action, Matt1 points you to a way to decide if admin or not
# Aug 9th 2008, 19:40 Spoom $this->Auth->allow ?
# Aug 9th 2008, 19:39 Jezek but if i add var $components = array('Auth'). it redirects to the login page, no matter what i put in beforeFilter
# Aug 9th 2008, 19:39 Spoom apache error log gives no clues, it just shows a 404 on accessing the 403.shtml error page
# Aug 9th 2008, 19:39 Jezek no i haven't
# Aug 9th 2008, 19:38 kalileo Jezek: have you setup your authentication to allow some pages already?
# Aug 9th 2008, 19:38 Matt1 Jezek: you could test for admin prefix on the appController:beforeFilter
# Aug 9th 2008, 19:29 Spoom i just don't understand why it gives forbidden errors when the pages themselves are being accessed fine
# Aug 9th 2008, 19:28 Jezek i know it must be a simple task
# Aug 9th 2008, 19:27 Spoom the 403 forbidden shows up in the ajax div so at least part of it is working
# Aug 9th 2008, 19:27 Spoom the pages that are referred to in the error work fine if i copy and paste them into the address bar
# Aug 9th 2008, 19:26 Spoom hi folks, i'm trying to set up ajax paging in cake using the paginator, and it works fine without ajax, but when i turn on ajax, it starts giving me 403 forbidden errors on clicking a page link, i'm following http://bakery.cakephp.org/articles/view/advanced-pagination-1-2 , any ideas?
# Aug 9th 2008, 19:23 Jezek just those with the admin prefix
# Aug 9th 2008, 19:23 Jezek i dont want it on all the actions
# Aug 9th 2008, 19:20 cpierce n/m i figured it out
# Aug 9th 2008, 19:16 Jezek anyone?
# Aug 9th 2008, 19:12 cpierce Fatal Error (256): ConnectionManager::getDataSource - Non-existent data source durantmainstreet [CORE/cake/libs/model/connection_manager.php, line 113]
# Aug 9th 2008, 19:12 cpierce why am i getting this
# Aug 9th 2008, 19:09 Jezek how do i just require authentication for admin/whatever for the authentication component
# Aug 9th 2008, 18:43 netpro25 heh
# Aug 9th 2008, 18:43 markstory gotta love em :)
# Aug 9th 2008, 18:43 netpro25 markstory: darn stupid mistakes
# Aug 9th 2008, 18:42 markstory )
# Aug 9th 2008, 18:42 netpro25 markstory: got it, made a error, put equals instead of equality, dumb mistake, your method works well thanks