do not remove superuser flags at saml login
gitea-wip/hobo/pipeline/head There was a failure building this commit Details
gitea/hobo/pipeline/head Build started... Details

This commit is contained in:
Valentin Deniaud 2019-04-24 10:32:29 +02:00
parent 29da2149e4
commit df4243ac32
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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