How can we set authorization for a whole area in ASP.NET MVC?

Posted by CodingTales on Stack Overflow See other posts from Stack Overflow or by CodingTales
Published on 2010-02-23T15:08:38Z Indexed on 2010/04/03 6:53 UTC
Read the original article Hit count: 319

I've an Admin area and I want only Admins to enter the area. I considered adding the Authorized attribute to every controller in the Admin area. Isn't there an elegant solution or is this feature not there in the framework itself?

EDIT: I'm sorry, I should to have mentioned this before. I'm using a custom AuthorizedAttribute derived from AuthorizeAttribute.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc-2