Skip to content

Commit

Permalink
fix: 去除多余权限 --story=121334648
Browse files Browse the repository at this point in the history
  • Loading branch information
guohelu committed Dec 23, 2024
1 parent bcae741 commit 8b64ecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gcloud/contrib/template_market/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def create(self, request, *args, **kwargs):
if create_response:
return create_response

self.queryset.model.objects.update_shared_record(
TemplateSharedRecord.objects.update_shared_record(
project_id=int(serializer.validated_data["project_code"]),
new_template_ids=request.data["templates"],
market_record_id=response_data["data"]["id"],
Expand All @@ -201,7 +201,7 @@ def partial_update(self, request, *args, **kwargs):
if update_response:
return update_response

self.queryset.model.objects.update_shared_record(
TemplateSharedRecord.objects.update_shared_record(
project_id=int(serializer.validated_data["project_code"]),
new_template_ids=request.data["templates"],
market_record_id=market_record_id,
Expand Down
1 change: 0 additions & 1 deletion gcloud/core/apis/drf/viewsets/common_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ class CommonTemplateViewSet(GcloudModelViewSet):
IAMMeta.COMMON_FLOW_VIEW_ACTION,
IAMMeta.COMMON_FLOW_EDIT_ACTION,
IAMMeta.COMMON_FLOW_DELETE_ACTION,
IAMMeta.COMMON_FLOW_CREATE_PERIODIC_TASK_ACTION,
],
)
filterset_class = CommonTemplateFilter
Expand Down

0 comments on commit 8b64ecc

Please sign in to comment.