mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
fix: adding new validation to change page is available before proceeding with update (#5176)
This commit is contained in:
committed by
GitHub
parent
a6d111f66d
commit
8f9b568a65
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user