Remove requirement for superuser when loading existing config

This commit is contained in:
Joseph Schorr 2019-03-04 13:28:40 -05:00
parent 2819c264cd
commit 9b23c7a174

View file

@ -102,6 +102,10 @@ class SuperUserRegistryStatus(ApiResource):
'status': 'setup-db'
}
config = config_provider.get_config()
if config and config['SETUP_COMPLETE']:
return 'config'
return {
'status': 'create-superuser' if not database_has_users() else 'config'
}