fix(security): remove internal ticket ID from test module docstring

The test module's docstring embedded the internal advisory ticket
reference directly in source. This repo is public, and an ID tying a
docstring straight to the exact authorization gap it covers hands
anyone on an unpatched fork a precise map from advisory to vulnerable
code path. Reworded the docstring to describe the invariant under
test (PUT must enforce the same authorization as PATCH) instead.

Co-authored-by: Plane AI <noreply@plane.so>
This commit is contained in:
Manish Gupta
2026-08-27 10:29:43 +05:30
parent d9841a5e02
commit c48480572d

View File

@@ -2,7 +2,10 @@
# SPDX-License-Identifier: AGPL-3.0-only
# See the LICENSE file for details.
"""Contract tests for ``ProjectViewSet`` PUT authorization (SECUR-248).
"""Contract tests for ``ProjectViewSet`` PUT authorization.
PUT must enforce the same authorization as PATCH, not fall through to DRF's
generic handler under the bare default permission class.
``urls/project.py`` maps ``"put": "update"``, but the viewset never defined
``update`` — so PUT fell through to DRF's ``ModelViewSet.update``. The class sets