asp.net mvc authorization using roles

前端 未结 5 1867
别那么骄傲
别那么骄傲 2020-12-07 15:11

I\'m creating an asp.net mvc application that has the concept of users. Each user is able to edit their own profile. For instance:

  • PersonID=1 can edit thei
5条回答
  •  忘掉有多难
    2020-12-07 15:46

    Solution for this problem: http://nerddinnerbook.s3.amazonaws.com/Part9.htm

    "Using the User.Identity.Name property when Editing Dinners

    Let's now add some authorization logic that restricts users so that they can only edit the properties of dinners they themselves are hosting..."

提交回复
热议问题