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
This will involve refactoring of how permissions are checked.
Currently, database hits are being doubled for permission checks. Better practices can be:
when possible, passing database objects to permission classes instead of calling the database from inside the permission class
checking permissions inside serializers, for POST requests
filtering querysets instead of denying access, for GET requests that return lists
Some endpoints (e.g., GET
/benchmarks/<bid>/datasets/<did>
) should return 404 (or an empty response) if hit by an unauthorized userThe text was updated successfully, but these errors were encountered: