From 0ef62e0b96e9becc6afa2b79c6cf55e57115fb3c Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Wed, 24 Apr 2019 10:32:29 +0200 Subject: [PATCH] do not remove superuser flags at saml login --- hobo/multitenant/mellon.py | 3 +++ hobo/utils.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/hobo/multitenant/mellon.py b/hobo/multitenant/mellon.py index 7abd773..78d51cf 100644 --- a/hobo/multitenant/mellon.py +++ b/hobo/multitenant/mellon.py @@ -35,3 +35,6 @@ class MellonAdapter(DefaultAdapter): def provision_groups(self, user, idp, saml_attributes): role_uuids = saml_attributes.get('role-slug', []) utils.provision_user_groups(user, role_uuids) + + def remove_superuser(self, user): + pass diff --git a/hobo/utils.py b/hobo/utils.py index bdb3260..f3f6cbc 100644 --- a/hobo/utils.py +++ b/hobo/utils.py @@ -9,3 +9,6 @@ class MellonAdapter(DefaultAdapter): except Authentic.DoesNotExist: return [] return [{'METADATA_URL': self_idp.get_saml_idp_metadata_url()}] + + def remove_superuser(self, user): + pass -- 2.20.1