I have a controller with an Authorize
attribute on it that accepts users for the Worker role:
[Authorize(Roles = "Worker")]
public class AuthorizedController : Controller
The rest of the controllers inherit from this controller.
In one of my controllers I want to give access to authorized users that is not in any role for some actions. Is there a way to inherit from AuthorizedController
and yet give access to some of the inherited controller actions for users that are not in the worker role?