<location path="CreateArticle">
<system.web>
<authorization>
<deny roles="banned"/>
<deny users="?"/>
</authorization>
</system.web>
The code above works fine but when I ban myself, It automatically redirects to the login page. I don’t want this, If a person is banned I want it to redirect to a banned page. is this possible in MVC?
well you can check inside your controller if the user is banned and make a proper decision