mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: space key changes
This commit is contained in:
parent
17f83d6458
commit
a97994bb11
@ -80,7 +80,7 @@ class IssueCommentPublicViewSet(BaseViewSet):
|
|||||||
anchor=self.kwargs.get("anchor"),
|
anchor=self.kwargs.get("anchor"),
|
||||||
entity_name="project",
|
entity_name="project",
|
||||||
)
|
)
|
||||||
if project_deploy_board.comments:
|
if project_deploy_board.is_comments_enabled:
|
||||||
return self.filter_queryset(
|
return self.filter_queryset(
|
||||||
super()
|
super()
|
||||||
.get_queryset()
|
.get_queryset()
|
||||||
@ -111,7 +111,7 @@ class IssueCommentPublicViewSet(BaseViewSet):
|
|||||||
anchor=anchor, entity_name="project"
|
anchor=anchor, entity_name="project"
|
||||||
)
|
)
|
||||||
|
|
||||||
if not project_deploy_board.comments:
|
if not project_deploy_board.is_comments_enabled:
|
||||||
return Response(
|
return Response(
|
||||||
{"error": "Comments are not enabled for this project"},
|
{"error": "Comments are not enabled for this project"},
|
||||||
status=status.HTTP_400_BAD_REQUEST,
|
status=status.HTTP_400_BAD_REQUEST,
|
||||||
@ -155,7 +155,7 @@ class IssueCommentPublicViewSet(BaseViewSet):
|
|||||||
anchor=anchor, entity_name="project"
|
anchor=anchor, entity_name="project"
|
||||||
)
|
)
|
||||||
|
|
||||||
if not project_deploy_board.comments:
|
if not project_deploy_board.is_comments_enabled:
|
||||||
return Response(
|
return Response(
|
||||||
{"error": "Comments are not enabled for this project"},
|
{"error": "Comments are not enabled for this project"},
|
||||||
status=status.HTTP_400_BAD_REQUEST,
|
status=status.HTTP_400_BAD_REQUEST,
|
||||||
@ -186,7 +186,7 @@ class IssueCommentPublicViewSet(BaseViewSet):
|
|||||||
anchor=anchor, entity_name="project"
|
anchor=anchor, entity_name="project"
|
||||||
)
|
)
|
||||||
|
|
||||||
if not project_deploy_board.comments:
|
if not project_deploy_board.is_comments_enabled:
|
||||||
return Response(
|
return Response(
|
||||||
{"error": "Comments are not enabled for this project"},
|
{"error": "Comments are not enabled for this project"},
|
||||||
status=status.HTTP_400_BAD_REQUEST,
|
status=status.HTTP_400_BAD_REQUEST,
|
||||||
@ -221,7 +221,7 @@ class IssueReactionPublicViewSet(BaseViewSet):
|
|||||||
workspace__slug=self.kwargs.get("slug"),
|
workspace__slug=self.kwargs.get("slug"),
|
||||||
project_id=self.kwargs.get("project_id"),
|
project_id=self.kwargs.get("project_id"),
|
||||||
)
|
)
|
||||||
if project_deploy_board.reactions:
|
if project_deploy_board.is_reactions_enabled:
|
||||||
return (
|
return (
|
||||||
super()
|
super()
|
||||||
.get_queryset()
|
.get_queryset()
|
||||||
@ -240,7 +240,7 @@ class IssueReactionPublicViewSet(BaseViewSet):
|
|||||||
anchor=anchor, entity_name="project"
|
anchor=anchor, entity_name="project"
|
||||||
)
|
)
|
||||||
|
|
||||||
if not project_deploy_board.reactions:
|
if not project_deploy_board.is_reactions_enabled:
|
||||||
return Response(
|
return Response(
|
||||||
{"error": "Reactions are not enabled for this project board"},
|
{"error": "Reactions are not enabled for this project board"},
|
||||||
status=status.HTTP_400_BAD_REQUEST,
|
status=status.HTTP_400_BAD_REQUEST,
|
||||||
@ -282,7 +282,7 @@ class IssueReactionPublicViewSet(BaseViewSet):
|
|||||||
anchor=anchor, entity_name="project"
|
anchor=anchor, entity_name="project"
|
||||||
)
|
)
|
||||||
|
|
||||||
if not project_deploy_board.reactions:
|
if not project_deploy_board.is_reactions_enabled:
|
||||||
return Response(
|
return Response(
|
||||||
{"error": "Reactions are not enabled for this project board"},
|
{"error": "Reactions are not enabled for this project board"},
|
||||||
status=status.HTTP_400_BAD_REQUEST,
|
status=status.HTTP_400_BAD_REQUEST,
|
||||||
@ -320,7 +320,7 @@ class CommentReactionPublicViewSet(BaseViewSet):
|
|||||||
project_deploy_board = DeployBoard.objects.get(
|
project_deploy_board = DeployBoard.objects.get(
|
||||||
anchor=self.kwargs.get("anchor"), entity_name="project"
|
anchor=self.kwargs.get("anchor"), entity_name="project"
|
||||||
)
|
)
|
||||||
if project_deploy_board.reactions:
|
if project_deploy_board.is_reactions_enabled:
|
||||||
return (
|
return (
|
||||||
super()
|
super()
|
||||||
.get_queryset()
|
.get_queryset()
|
||||||
@ -339,7 +339,7 @@ class CommentReactionPublicViewSet(BaseViewSet):
|
|||||||
anchor=anchor, entity_name="project"
|
anchor=anchor, entity_name="project"
|
||||||
)
|
)
|
||||||
|
|
||||||
if not project_deploy_board.reactions:
|
if not project_deploy_board.is_reactions_enabled:
|
||||||
return Response(
|
return Response(
|
||||||
{"error": "Reactions are not enabled for this board"},
|
{"error": "Reactions are not enabled for this board"},
|
||||||
status=status.HTTP_400_BAD_REQUEST,
|
status=status.HTTP_400_BAD_REQUEST,
|
||||||
@ -380,7 +380,7 @@ class CommentReactionPublicViewSet(BaseViewSet):
|
|||||||
project_deploy_board = DeployBoard.objects.get(
|
project_deploy_board = DeployBoard.objects.get(
|
||||||
anchor=anchor, entity_name="project"
|
anchor=anchor, entity_name="project"
|
||||||
)
|
)
|
||||||
if not project_deploy_board.reactions:
|
if not project_deploy_board.is_reactions_enabled:
|
||||||
return Response(
|
return Response(
|
||||||
{"error": "Reactions are not enabled for this board"},
|
{"error": "Reactions are not enabled for this board"},
|
||||||
status=status.HTTP_400_BAD_REQUEST,
|
status=status.HTTP_400_BAD_REQUEST,
|
||||||
@ -422,7 +422,7 @@ class IssueVotePublicViewSet(BaseViewSet):
|
|||||||
workspace__slug=self.kwargs.get("anchor"),
|
workspace__slug=self.kwargs.get("anchor"),
|
||||||
entity_name="project",
|
entity_name="project",
|
||||||
)
|
)
|
||||||
if project_deploy_board.votes:
|
if project_deploy_board.is_votes_enabled:
|
||||||
return (
|
return (
|
||||||
super()
|
super()
|
||||||
.get_queryset()
|
.get_queryset()
|
||||||
|
Loading…
Reference in New Issue
Block a user