File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -585,12 +585,9 @@ class UploadSkillFile(APIView):
585585 tags = [_ ("Tool" )] # type: ignore
586586 )
587587 @has_permissions (
588- PermissionConstants .TOOL_EDIT .get_workspace_tool_permission (),
589- PermissionConstants .TOOL_EDIT .get_workspace_permission_workspace_manage_role (),
590- RoleConstants .WORKSPACE_MANAGE .get_workspace_role (),
591- ViewPermission ([RoleConstants .USER .get_workspace_role ()],
592- [PermissionConstants .TOOL .get_workspace_tool_permission ()],
593- CompareConstants .AND ),
588+ PermissionConstants .TOOL_CREATE .get_workspace_permission (),
589+ PermissionConstants .TOOL_CREATE .get_workspace_permission_workspace_manage_role (),
590+ RoleConstants .WORKSPACE_MANAGE .get_workspace_role (), RoleConstants .USER .get_workspace_role ()
594591 )
595592 def put (self , request : Request , workspace_id : str ):
596593 return result .success (ToolSerializer .UploadSkillFile (data = {
You can’t perform that action at this time.
0 commit comments