Skip to content

Commit 4cd067f

Browse files
mihowclaude
andcommitted
fix: add ObjectPermission to TaxaListViewSet
Match the permission pattern used by other project-scoped viewsets (ProjectViewSet, DeploymentViewSet, SiteViewSet, DeviceViewSet). Without this, non-staff project members cannot manage taxa lists. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d947756 commit 4cd067f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ami/main/api/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,7 @@ class TaxaListViewSet(DefaultViewSet, ProjectMixin):
16341634
"created_at",
16351635
"updated_at",
16361636
]
1637+
permission_classes = [ObjectPermission]
16371638
require_project = True
16381639

16391640
def get_queryset(self):

0 commit comments

Comments
 (0)