summaryrefslogtreecommitdiff
path: root/tests/admin_views/tests.py
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2026-03-12 11:00:05 -0400
committerJacob Walls <jacobtylerwalls@gmail.com>2026-04-07 07:12:16 -0400
commitef8b25dcc06d158683a5623ce406d561638f4073 (patch)
treecd2cdb9556e001c770247091a49b14b2850a3a59 /tests/admin_views/tests.py
parentcaf90a971f09323775ed0cacf94eadaf39d040e0 (diff)
Fixed CVE-2026-4277 -- Checked add permissions in GenericInlineModelAdmin.
Edit permissions were still checked as part of ordinary form validation, but because GenericInlineModelAdmin overrides get_formset(), it lacked InlineModelAdmin's dynamic DeleteProtectedModelForm.has_changed() logic for checking permissions server-side, leaving the add case unaddressed. This change reimplements the relevant part of InlineModelAdmin.get_formset(). Thanks N05ec@LZU-DSLab for the report, and Natalia Bidart, Markus Holtermann, and Simon Charette for reviews.
Diffstat (limited to 'tests/admin_views/tests.py')
0 files changed, 0 insertions, 0 deletions