mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
added access check to uninstall app
This commit is contained in:
parent
a818bc942b
commit
d3af9090ea
@ -394,6 +394,7 @@ async def install_app(app_name: str, auth: AuthRequest):
|
||||
|
||||
@router.post("/uninstall/{app_name}")
|
||||
async def uninstall_app(app_name: str, auth: AuthRequest):
|
||||
check_access(lollmsElfServer, auth.client_id)
|
||||
app_name=sanitize_path(app_name)
|
||||
app_path = lollmsElfServer.lollms_paths.apps_zoo_path / app_name
|
||||
if app_path.exists():
|
||||
|
Loading…
Reference in New Issue
Block a user