Skip to content

Commit

Permalink
Slightly adjust the security level of try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ltdrdata committed Oct 15, 2024
1 parent b139bfa commit e8bb7cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion glob/manager_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import cm_global
from manager_util import *

version = [2, 51, 7]
version = [2, 51, 8]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')


Expand Down
6 changes: 5 additions & 1 deletion glob/manager_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,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('high'):
if not is_allowed_security_level('middle'):
print(SECURITY_MESSAGE_GENERAL)
return web.Response(status=403)

Expand All @@ -871,6 +871,10 @@ async def fix_custom_node(request):
return web.Response(status=400)

if 'pip' in json_data:
if not is_allowed_security_level('high'):
print(SECURITY_MESSAGE_GENERAL)
return web.Response(status=403)

for pname in json_data['pip']:
install_cmd = [sys.executable, "-m", "pip", "install", '-U', pname]
core.try_install_script(json_data['files'][0], ".", install_cmd)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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.7"
version = "2.51.8"
license = { file = "LICENSE.txt" }
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]

Expand Down

0 comments on commit e8bb7cc

Please sign in to comment.