This commit is contained in:
@@ -24,7 +24,8 @@ def role_required(required_role: UserRoles):
|
||||
auth_type = current_user_identity['type']
|
||||
|
||||
if auth_type == "node":
|
||||
node = app.active_clients.get("client_id")
|
||||
node = current_app.active_clients.get(user_id)
|
||||
print("Node", node)
|
||||
|
||||
if not node:
|
||||
abort(401, "Node not found or invalid token.")
|
||||
|
||||
Reference in New Issue
Block a user