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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -