I have a Pages table that stores all my view urls and this table has permissions linked to the user’s role. My controllers inherit of a BaseController so I was wondering where I intercept the request and then return a InvalidPermissions view.
Share
You probably want to override OnActionExecuting or OnAuthorization, depending on what is available and what you need from the request/controller context. You might also want to think about using a custom ActionFilterAttribute or deriving from AuthorizeAttribute as a means to make it more flexible for each action/controller.