Hello,

I'm trying to find a way to restrict access to my Radiant front pages
using Radius tags (or maybe not) like that :

<r:allow_access_to groups="user" />

tag "allow_access_to" do |tag|
  ...process...
  unless has_right
    redirect_to "/"
  end
end

But it's not working because the redirect_to method is coming from
ActionController... I tried to call a helper, but the I can't too.

Do you have any idea to 'redirect' me in the right way? What are you
using usually? Could you share your experience, thank you !

Vincent
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
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