asp.net mvc 3 - Allow a controller method from a non-logged user -



asp.net mvc 3 - Allow a controller method from a non-logged user -

i have controller every method should restricted role=admin class instantiates with:

[authorize(roles = admin)]

every method takes on check. know can override attribute method method permit other user roles i'd remove authorization check 1 of methods in class.

what's syntax that?

thx

here 1 approach may work: what's best way protect actions controller except 1 (login)?

asp.net-mvc-3 authorize-attribute

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -