Vincent Pérès wrote:
Hello,

I need to use the current_user in Radius tags. In fact it is working on
my computer which is running with MAC OS (and previously on my Windows
environment), but not on my friend computer which is on Windows.

Well, what I have done :
1. create an accessor attribut 'current_user' on page model
2. extended site_controller to give the current user to my current page
:
@page.current_user = current_user
3. Then, on my tags I'm using current_user like that :
tags.local.page.current_user

And it is working on my computer. We have exactly the same project and
same database... has anyone any idea on what could broke the process? In
fact tags.local.page.current_user is nil on my computer's friend.

Vincent,

Is your friend logged in to the admin site? Also, did you re-enable sessions in the SiteController?

Sean

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to