Skip to content

Protect immutable customer and employee fields #6

@NikosPoly

Description

@NikosPoly

Currently PUT and PATCH allow updating fields that should never change or
should be restricted to specific roles.

Tasks

  • Block customerId and gender from being updated in both PUT and PATCH on customers
  • Block employeeId from being updated in both PUT and PATCH on employees
  • Restrict role changes to ADMIN only — wire with hasAccess() check

Metadata

Metadata

Assignees

No one assigned

    Labels

    business logicEnforces real world library domain rules and constraints

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions