Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: adding new validation to change page is available before proceeding with update (#5176)

sriram veeraghanta8f9b568a65ce
diff --git a/apiserver/plane/app/views/page/base.py b/apiserver/plane/app/views/page/base.py
index 4bcaa8dfc8..c11ef5e94e 100644
--- a/apiserver/plane/app/views/page/base.py
+++ b/apiserver/plane/app/views/page/base.py
@@ -492,6 +492,12 @@ class PagesDescriptionViewSet(BaseViewSet):
.first()
)
+ if page is None:
+ return Response(
+ {"error": "Page not found"},
+ status=404,
+ )
+
if page.is_locked:
return Response(
{"error": "Page is locked"},