fix: more various bug and issues

This commit is contained in:
swve 2023-06-28 00:08:59 +02:00
parent 86e7ecc0fc
commit c3a5f43f13
20 changed files with 349 additions and 251 deletions

14
src/services/dev/dev.py Normal file
View file

@ -0,0 +1,14 @@
from fastapi import HTTPException
from config.config import get_learnhouse_config
def isDevModeEnabled():
config = get_learnhouse_config()
if config.general_config.development_mode:
return True
else:
raise HTTPException(
status_code=403,
detail="Development mode is not enabled",
)