mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 22:44:24 +01:00
Properly check SAFE_MODE and allow plugins to be loaded from tests optionally
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user