Staff-Only and Owner-Only Access Rules in Django REST Framework
Some endpoints should answer only staff users, and others only the user who owns a row. A permission class or a filtered queryset enforces this, and an outsider gets 403 or 404.
This Concept is waiting for its first lesson!
Are you a teacher? Sign in to start contributing.
Sign In