I'm using C# MVC5 and I have created an AccessAttribute
to define what page each user can access based on his permission.
In my application there is an Area called Administration that only the "admin" user can access.
Question : Is it possible to apply a global filter to this area, similar to how we apply global filter to an entire project?
Current Solution : Add the AccessAttribute
to every class definition in the admin section.
Problem with that solution : If I simply forget to add the attribute to the class definition, an attacker could gain access to the admin section.