Saturday, August 28, 2010

Re: Use Auth Component in Helper

How about $this->Session->Auth->User?

Jeremy Burns
Class Outfit

jeremyburns@classoutfit.com
http://www.classoutfit.com

On 28 Aug 2010, at 13:07, duderion wrote:

> Hi Guys,
>
> i would like to create a modified linkhelper that only displays a
> link, if the user is allowed to use it.
>
> i have created a mechanism to map users to roles and everything.
>
> but now, i dont know how to access Auth's Userdata in my Helper to
> check the users rights before displaying the link.
>
> Or is it a general design failure to create a special helper for this
> task..
>
>
> tell me what you think...
>
> greets
> duderion
>
> 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+unsubscribe@googlegroups.com For more options, visit this group at http://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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: