From 0469cad3bc14b06235ce1c3015674b6f68119521 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Mon, 7 Oct 2024 08:58:47 +0900 Subject: [PATCH] security policy is modified MODIFIED: Fix custom nodes feature belongs to `high` level risky features --- README.md | 3 ++- glob/manager_core.py | 2 +- glob/manager_server.py | 2 +- pyproject.toml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7ff05ed7..2c01c6c7 100644 --- a/README.md +++ b/README.md @@ -364,9 +364,10 @@ When you run the `scan.sh` script: * `Install via git url`, `pip install` * Installation of custom nodes registered not in the `default channel`. * Display terminal log + * Fix custom nodes * `middle` level risky features - * Uninstall/Update/Fix custom nodes + * Uninstall/Update * Installation of custom nodes registered in the `default channel`. * Restore/Remove Snapshot * Restart diff --git a/glob/manager_core.py b/glob/manager_core.py index 69ffea65..34036199 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -23,7 +23,7 @@ import cm_global from manager_util import * -version = [2, 51, 3] +version = [2, 51, 4] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') diff --git a/glob/manager_server.py b/glob/manager_server.py index 197283ad..f60de7e8 100644 --- a/glob/manager_server.py +++ b/glob/manager_server.py @@ -843,7 +843,7 @@ async def install_custom_node(request): @PromptServer.instance.routes.post("/customnode/fix") async def fix_custom_node(request): - if not is_allowed_security_level('middle'): + if not is_allowed_security_level('high'): print(SECURITY_MESSAGE_MIDDLE_OR_BELOW) return web.Response(status=403) diff --git a/pyproject.toml b/pyproject.toml index d3cfc7f9..85c1a0dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-manager" description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI." -version = "2.51.3" +version = "2.51.4" license = { file = "LICENSE.txt" } dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]