Skip to content

Commit 2d067a8

Browse files
committed
fix: [Import Workflow] Ordinary users cannot publish their internal tools after importing the intelligent agent
1 parent 5bca299 commit 2d067a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/tools/views/tool_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Publish(APIView):
3737
@has_permissions(PermissionConstants.TOOL_EDIT.get_workspace_tool_permission(),
3838
PermissionConstants.TOOL_EDIT.get_workspace_permission_workspace_manage_role(),
3939
ViewPermission([RoleConstants.USER.get_workspace_role()],
40-
[PermissionConstants.TOOL.get_workspace_knowledge_permission()],
40+
[PermissionConstants.TOOL.get_workspace_tool_permission()],
4141
CompareConstants.AND),
4242
RoleConstants.WORKSPACE_MANAGE.get_workspace_role())
4343
@log(menu='Tool', operate='Publishing an tool',

0 commit comments

Comments
 (0)