Fix broken check
This commit is contained in:
parent
508bc10a58
commit
f125efa8ca
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ class SuperUserRegistryStatus(ApiResource):
|
||||||
@internal_only
|
@internal_only
|
||||||
@show_if(features.SUPER_USERS)
|
@show_if(features.SUPER_USERS)
|
||||||
@hide_if(features.BILLING) # Make sure it is never allowed in prod.
|
@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. """
|
""" Resource for fetching and updating the current configuration, if any. """
|
||||||
schemas = {
|
schemas = {
|
||||||
'UpdateConfig': {
|
'UpdateConfig': {
|
||||||
|
@ -143,7 +143,7 @@ class SuperUserConfigFile(ApiResource):
|
||||||
@nickname('scUpdateConfigFile')
|
@nickname('scUpdateConfigFile')
|
||||||
def post(self, filename):
|
def post(self, filename):
|
||||||
""" Updates the configuration file with the given name. """
|
""" Updates the configuration file with the given name. """
|
||||||
if not filename in CONFIG_FILE_WHITELIST:
|
if not filename in SSL_FILENAMES:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
if SuperUserPermission().can():
|
if SuperUserPermission().can():
|
||||||
|
|
Reference in a new issue