views:

27

answers:

1

i have mvc2 project and i make custom role Provider I'm using attributes [Authorize(Roles = "Admin")] to prevent an authorized user from doing some actions that always reject user to log in view i want to change that and redirect user to view that I'm tilling him that he isn't authorized for this action

    [Authorize(Roles = "Admin")]
public ActionResult delete(int id)
    {
       ...........
    }
A: 

This is a recurring question: Here & Here

KP