[WEB-4145] chore: added validation for project deletion #7101
This commit is contained in:
parent
731c4e8fcd
commit
643390e723
1 changed files with 1 additions and 1 deletions
|
|
@ -445,7 +445,7 @@ class ProjectViewSet(BaseViewSet):
|
|||
is_active=True,
|
||||
).exists()
|
||||
):
|
||||
project = Project.objects.get(pk=pk)
|
||||
project = Project.objects.get(pk=pk, workspace__slug=slug)
|
||||
project.delete()
|
||||
webhook_activity.delay(
|
||||
event="project",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue