开发者

reject user to specific view?

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)
    {
       ...........
    }


This is a recurring question: Here & Here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜