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
test(authorization): cover end-to-end ACL filtering for authorized_users
Existing tests verified user_has_permission() flips when an admin adds /
removes via the new endpoints, but did not exercise the actual
view-level gating. New cases assert end-to-end via the Django test
client:
* unauthorized non-staff hitting view_product / view_product_type 400s
(handler403 → custom_unauthorized_view)
* authorized user (direct or cascading via product_type) gets 200
* the product list page filters by membership (unauthorized user does
not see the product; authorized member does)
* product_type cascade is visible — adding to Product_Type.authorized_users
surfaces its products in the product list for the cascade member
0 commit comments