Fix broken check

This commit is contained in:
Joseph Schorr 2015-01-07 16:42:09 -05:00
parent 508bc10a58
commit f125efa8ca

View file

@ -58,7 +58,7 @@ class SuperUserRegistryStatus(ApiResource):
@internal_only
@show_if(features.SUPER_USERS)
@hide_if(features.BILLING) # Make sure it is never allowed in prod.
class SuperUserGetConfig(ApiResource):
class SuperUserConfig(ApiResource):
""" Resource for fetching and updating the current configuration, if any. """
schemas = {
'UpdateConfig': {
@ -143,7 +143,7 @@ class SuperUserConfigFile(ApiResource):
@nickname('scUpdateConfigFile')
def post(self, filename):
""" Updates the configuration file with the given name. """
if not filename in CONFIG_FILE_WHITELIST:
if not filename in SSL_FILENAMES:
abort(404)
if SuperUserPermission().can():