Bug Fixes
This commit is contained in:
@@ -154,3 +154,4 @@ cython_debug/
|
||||
|
||||
.idea
|
||||
/node_modules
|
||||
/frontend
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# ComfyUI-Nexus
|
||||
|
||||
 
|
||||
 
|
||||
|
||||
A ComfyUI node designed to enable seamless multi-user workflow collaboration.
|
||||
|
||||
|
||||
+8
-1
@@ -308,7 +308,14 @@ if hasattr(PromptServer, 'instance'):
|
||||
if user_permission:
|
||||
return web.json_response(user_permission)
|
||||
else:
|
||||
return web.json_response({'error': 'User not found'}, status=404)
|
||||
with open(PERMISSIONS_FILE, 'r+') as f:
|
||||
permissions = json.load(f)
|
||||
permissions[user_id] = {'queue': False, 'editor': False, 'admin': False}
|
||||
f.seek(0)
|
||||
json.dump(permissions, f)
|
||||
f.truncate()
|
||||
user_permission = permissions[user_id]
|
||||
return web.json_response(user_permission)
|
||||
|
||||
@routes.post("/nexus/permission/{id}")
|
||||
async def post_permission_by_id(request):
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "comfyui-nexus"
|
||||
description = "Node to enable seamless multiuser workflow collaboration"
|
||||
version = "1.0.1"
|
||||
version = "1.0.2"
|
||||
license = { file = "LICENSE" }
|
||||
dependencies = []
|
||||
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user