I have AdminController which is authorize to Admin only with MVC attribute:
[Authorize(Roles = "Admin")]
I want 3 Actions inside the controller will be available to User access level also .
how can I do it ?
thank you
I have AdminController which is authorize to Admin only with MVC attribute:
[Authorize(Roles = "Admin")]
I want 3 Actions inside the controller will be available to User access level also .
how can I do it ?
thank you
got it :-)
this is what we need to put above the Actions:
[OverrideAuthorization]
[Authorize(Roles = "Admin,User")]