mirror of
https://github.com/ansible/awx.git
synced 2026-02-12 15:14:45 -03:30
Fix success_url_allowed_hosts set instantiation (#15196)
Co-authored-by: Michael Anstis <manstis@redhat.com>
This commit is contained in:
@@ -110,7 +110,7 @@ class LoggedLoginView(auth_views.LoginView):
|
||||
|
||||
class LoggedLogoutView(auth_views.LogoutView):
|
||||
|
||||
success_url_allowed_hosts = settings.LOGOUT_ALLOWED_HOSTS
|
||||
success_url_allowed_hosts = set(settings.LOGOUT_ALLOWED_HOSTS.split(",")) if settings.LOGOUT_ALLOWED_HOSTS else set()
|
||||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
original_user = getattr(request, 'user', None)
|
||||
|
||||
Reference in New Issue
Block a user