Fix team member cannot edit agent (#14612)

### What problem does this PR solve?

Follow on PR: https://github.com/infiniflow/ragflow/pull/14602
to fix: team member cannot edit agent.
new behavior: beside delete, everything is allowed for team member.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Wang Qi
2026-05-07 15:09:13 +08:00
committed by GitHub
parent 1d114f034b
commit c50028b1f3
4 changed files with 46 additions and 46 deletions

View File

@@ -221,8 +221,6 @@ class UserCanvasService(CommonService):
e, cvs = cls.get_by_id(agent_id)
if not e:
raise LookupError("Agent not found.")
if tenant_id and cvs.user_id != tenant_id:
raise PermissionError("You do not own the agent.")
if release_mode:
released_version = UserCanvasVersionService.get_latest_released(agent_id)