Skip to content

Project permission and FK cascade gaps (US-SA-079, US-SA-146) #44

Description

@andrewyager

Description

Two related gaps in the Project feature:

  1. project_edit view has no permission check — any authenticated user can edit any project
  2. Project FK on HoldList uses SET_NULL — deleting a project with active hold lists silently detaches them instead of blocking the deletion

Spec Sections: S10A (US-SA-079, US-SA-146)
Severity: LOW
MoSCoW: SHOULD

Xfail Test Coverage (3 tests)

File Test Reason
test_system_admin.py TestUS_SA_079::test_project_edit_restricted project_edit view has no permission check (US-SA-079-2)
test_system_admin.py TestUS_SA_079::test_project_cannot_delete_with_active_holds Project FK on HoldList uses SET_NULL (US-SA-079-3)
test_system_admin.py TestUS_SA_146::test_project_cannot_delete_with_active_holds Project FK on HoldList uses SET_NULL (US-SA-146-2)

Branch: feature/test-reorganisation-and-functional-suite (PR #37)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions