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

Jeremy Burns
Class Outfit

[email protected]
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 [email protected]
> To unsubscribe from this group, send email to
> [email protected] 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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to