Re: Auth Component: Allow action in a controller but disallow it in another

2010-04-19 Thread WebbedIT
Can we assume you have set $this->Auth->allow('referrals'), at an
application level (/app/app_controller.php)

If so add $this->Auth->deny('referrals') in your User and Staff
controllers.

HTH

Paul.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Auth Component: Allow action in a controller but disallow it in another

2010-04-16 Thread John Andersen
Take a look at the message:
http://groups.google.com/group/cake-php/browse_thread/thread/e53fafc5c33dbe6a/543251f6349d373b?#543251f6349d373b
which is not about the same topic, but Crickets example and
explanation is certainly related to your issue.
Enjoy,
   John

On Apr 16, 10:28 am, "Prof. No Time" 
wrote:
> Hello,
>
> Please I have an action named "referrals", I wish to allow this action
> in the guestscontroller without authentication but I have a similar
> action in the userscontroller and the staffscontroller. I DO NOT wish
> to change the action (vis-a-vis url format) name for LEGACY reasons.
> The Auth component keeps allowing my users and staffs referral pages
> access without authentication. This is understandable though. The
> question now is how do I achieve this feat?
>
> Thank You.
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> 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 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Auth Component: Allow action in a controller but disallow it in another

2010-04-16 Thread Prof. No Time
Hello,

Please I have an action named "referrals", I wish to allow this action
in the guestscontroller without authentication but I have a similar
action in the userscontroller and the staffscontroller. I DO NOT wish
to change the action (vis-a-vis url format) name for LEGACY reasons.
The Auth component keeps allowing my users and staffs referral pages
access without authentication. This is understandable though. The
question now is how do I achieve this feat?

Thank You.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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