diff --git a/ssoauth/app_settings/defaults.py b/ssoauth/app_settings/defaults.py index f8f20e5118d9c25720ec12525c9c4107494ec990..1b511fab1cc069ebf5af68d09e8d85f240152f3a 100644 --- a/ssoauth/app_settings/defaults.py +++ b/ssoauth/app_settings/defaults.py @@ -51,9 +51,7 @@ SP_METADATA_LIFETIME_DAYS = 365 * 20 PROJECT_NAME = os.environ.get('DJANGO_SETTINGS_MODULE').split('.')[0] SU_GROUP_NAME = "{0}_superusers".format(PROJECT_NAME) -SU_PERM_NAME = "superuser" STAFF_GROUP_NAME = "{0}_staff".format(PROJECT_NAME) -STAFF_PERM_NAME = "staff" PRETEND_AUTH_BACKEND = django_settings.AUTHENTICATION_BACKENDS[0] # pretend to be this backend; django does not expect that it is possible to log in without an authentication backend diff --git a/ssoauth/management/commands/create_compat_groups.py b/ssoauth/management/commands/create_compat_groups.py index 62822d624fc9764b7ea6798209c410fb48218e36..19e5975ee0c62b832e73245ed493224ece69af01 100644 --- a/ssoauth/management/commands/create_compat_groups.py +++ b/ssoauth/management/commands/create_compat_groups.py @@ -13,8 +13,8 @@ class Command(BaseCommand): def handle(self, *args, **options): try: - self.ensure_group_exists(app_settings.SU_GROUP_NAME, [app_settings.SU_PERM_NAME]) - self.ensure_group_exists(app_settings.STAFF_GROUP_NAME, [app_settings.STAFF_PERM_NAME]) + self.ensure_group_exists(app_settings.SU_GROUP_NAME) + self.ensure_group_exists(app_settings.STAFF_GROUP_NAME) except Exception as e: raise CommandError("Could not ensure that compatibility groups and permissions exist. {0}".format(str(e)))