providers/saml: fix redirect error
This commit is contained in:
parent
61772b75ff
commit
0901d7461e
|
@ -55,7 +55,6 @@ class MetadataImportView(LoginRequiredMixin, FormView):
|
||||||
|
|
||||||
form_class = SAMLProviderImportForm
|
form_class = SAMLProviderImportForm
|
||||||
template_name = "providers/saml/import.html"
|
template_name = "providers/saml/import.html"
|
||||||
success_url = reverse_lazy("authentik_admin:providers")
|
|
||||||
|
|
||||||
def dispatch(self, request, *args, **kwargs):
|
def dispatch(self, request, *args, **kwargs):
|
||||||
if not request.user.is_superuser:
|
if not request.user.is_superuser:
|
||||||
|
|
Reference in New Issue