You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use IsProjectMemberOrReadOnly for TaxaListViewSet permissions
ObjectPermission doesn't work for M2M-to-project models because
BaseModel.get_project() returns None when get_project_accessor()
returns "projects". This caused all write operations (create, update,
delete) on taxa lists to be denied for every user.
Switch to IsProjectMemberOrReadOnly which resolves the project via
ProjectMixin.get_active_project() (from query param) instead of
through the model instance. Add 10 permission tests covering member
CRUD, anonymous read-only, non-member rejection, and owner access.
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments