I am familiar with:
WebSecurity.IsCurrentUserInRole("Admin")
But this does not seem to work any more. Is there another way I can check in my controller if a user is in a role when I am using SimpleMembership?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
And webConfig
After Comment
you can use something like this:
I think there is an elegant way to do this…