π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
chore: only admin can changed the project settings (#5766)
Bavisetti Narayan8a866e440c9c
diff --git a/apiserver/plane/app/views/project/base.py b/apiserver/plane/app/views/project/base.pyindex 6a9afb6523..f5ddb22458 100644--- a/apiserver/plane/app/views/project/base.py+++ b/apiserver/plane/app/views/project/base.py@@ -413,9 +413,20 @@ class ProjectViewSet(BaseViewSet):status=status.HTTP_410_GONE,)- @allow_permission([ROLE.ADMIN])def partial_update(self, request, slug, pk=None):try:+ if not ProjectMember.objects.filter(+ member=request.user,+ workspace__slug=slug,+ project_id=pk,+ role=20,+ is_active=True,+ ).exists():+ return Response(+ {"error": "You don't have the required permissions."},+ status=status.HTTP_403_FORBIDDEN,+ )+workspace = Workspace.objects.get(slug=slug)project = Project.objects.get(pk=pk)