I am building a system where some users have access to certain pieces of data and not others.
How do I secure my application so that user A can get access to
/Product/1/Edit but not /Product/2/Edit
I was thinking of using an action filter for this. Is this the right way to do it?
Yes, a custom Authorize action filter is a good place to do this. Here’s how you could proceed: