could you please tell me how work with authorization?..
how to hide various Actions based on login in MVC4 Controller.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jan 25, 2014, 2:27 AM EST
You can use Custom Authorization Filter Actions as explained in the following posts,
http://www.codeproject.com/Articles/426766/Custom-Filters-in-MVC-Authorization-Action-Result
http://msdn.microsoft.com/en-us/library/system.web.mvc.authorizeattribute(v=vs.100).aspx#using_authorizeattribute
http://www.codeproject.com/Articles/650240/A-Simple-Action-Filter-Overview
http://schotime.net/blog/index.php/2009/02/17/custom-authorization-with-aspnet-mvc/