Authorize specific user from database
I want to prevent access my action methods from all users except one.How can i authorize a specific user from my database model?? help please....
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Afzaal Ahmad ZeeshanPosted Jun 6, 2015, 11:09 AM
Shibly SadikPosted Jun 6, 2015, 10:36 AM
Afzaal Ahmad ZeeshanPosted Jun 6, 2015, 10:02 AM
if(user.UserId == 1001) {// Allowed user
} else {
// Not allowed
}
Shibly SadikPosted Jun 6, 2015, 8:14 AM
Please help me explaining detail...
Afzaal Ahmad ZeeshanPosted Jun 6, 2015, 3:49 AM