﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29977	Allow customizing AccessMixin redirect	Carlton Gibson	nobody	"Reported on #28379, ref 9b1125bfc7e2dc747128e6e7e8a2259ff1a7d39f.

>
> just raising a 403 for authenticated users is not ideal.
>
> it might be better to give users the possibility to redirect to another url instead of just throwing the 403.
>
> in my case I am using a custom mixin in which I redirect authenticated users to another page and show them a message (that they have been redirected due to missing access rights), anonymous users are redirected to login (the default behaviour). after my update to v2.1.3 this does not work anymore...
>
> it might be better if AccessMixin would have a method something like ""get_redirect_url"" (defaults to ""/"") to which an authenticated user will be redirected. an anonymous user is redirected to login.
"	New feature	closed	contrib.auth	2.1	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
