Forums / Setup & design / where to put access control for custom views ?

where to put access control for custom views ?

Author Message

Massimiliano Bariola

Friday 08 July 2005 6:50:39 am

Hello ,

I have added a couple of templates to design/my_design/templates/node/view/, so that I'll be able to access them via link like content/view/[nodeid], effectively creating two new view templates.

These views should be protected so that anonymous users will not be able to see them. what is the best way to protect them ?

adding an if statement on the visiting user's class, redirecting to login page if it's an anonymous user?

or is there a way to add policies via the admin interface for these view templates?

TIA