How to check if user role has read/write access to a specific view

mikywtf

New Member
I have a \[code\]ASP.NET MVC 4\[/code\] application. I am trying to implement a solution where I check if a user can access a view, if not then display an error. If the user can access a view then I need to check if that user has \[code\]read access\[/code\] or \[code\]read and edit access\[/code\] to that view. If the user has read access then just a normal details view is displayed, if read and edit access then the user can see a details view or can edit the data.Is something like this possible? I have tried looking through a couple of starter kits that I found on Codeplex but I can't find something like I want. How would this be implemented? If possible, if anyone knows of any sample project that I can download then I will appreciate. I like to work through code, I learn more this way.I want this all to be database-driven.
 
Back
Top