Properly check SAFE_MODE and allow plugins to be loaded from tests optionally

This commit is contained in:
Kevin Chung
2018-11-25 13:51:33 -05:00
parent 3e8f13dfd1
commit ae90537a59
3 changed files with 17 additions and 13 deletions

View File

@@ -189,7 +189,6 @@ def create_app(config='CTFd.config.Config'):
app.register_error_handler(500, general_error)
app.register_error_handler(502, gateway_error)
if app.config.get('SAFE_MODE', False):
init_plugins(app)
init_plugins(app)
return app