# |
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 |
# |
Aug 9th 2008, 18:40 |
markstory |
I love textmate and css edit :) |
# |
Aug 9th 2008, 18:38 |
netpro25 |
lol, good thinking |
# |
Aug 9th 2008, 18:38 |
netpro25 |
did not think of that |
# |
Aug 9th 2008, 18:38 |
markstory |
why no do /members/getOfficerEmail/'.$this->data['Contact']['sendTo'] |
# |
Aug 9th 2008, 18:37 |
netpro25 |
markstory: like this? $this->requestAction('members/getOfficerEmail', array('id' => $this->data['Contact']['sendTo'])); |
# |
Aug 9th 2008, 18:35 |
jaredhoyt |
should i add a new component to the bakery or just modify the old one? |
# |
Aug 9th 2008, 18:32 |
markstory |
its in the book :) |