Skip to content

bug(rbac/plans): creator cannot manage own scheduled purchase created from Plans page #1442

Closed

Description

@cristim

Bug: Creator cannot manage own Scheduled Purchase created from the Plans page

Found during QA (Bugs sheet row 608, "Non-admin User" section).

Steps to reproduce

  1. As a non-admin user (member of Purchaser, Standard User, Purchase Approvers, Plan Authors), create a new Plan.
  2. Schedule a Purchase from that new Plan.

Expected

The Plan is created; the Scheduled Purchase is created; and the creating user can manage (e.g. cancel) that Scheduled Purchase, the same way they can cancel a Pending Purchase request they created on Purchases > Approval queue.

Actual

The user cannot manage the Scheduled Purchase they created from their own Plan.

Verify-first (important)

This may be partially covered already:

PR #1421's ownership gate was scoped to the Home-page Cancel button. Before implementing, verify whether that same ownership gate already exposes management on the Plans-originated path:

Acceptance

  • The creator of a Plans-originated scheduled purchase can cancel/manage it.
  • A non-creator still cannot (ownership gate preserved).
  • Regression test exercises the real Plans-page-origin path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions