Your DRF Permission Class Protects /projects/42, but /projects Still Lists Every Tenant
DEV Community
Your DRF Permission Class Protects /projects/42, but /projects Still Lists Every Tenant
Object permissions in Django REST Framework run only when get_object() is called. List views skip them. We reproduced the leak on Django 6.1 and DRF 3.18, then tested a fail-safe queryset and a router-wide check.
0 comments
No comments yet.