Skip to content

Admin Requests Auto-Approve #21

@raystorm

Description

@raystorm

User Story

As an admin
I want my own box requests to be automatically approved
So that I don't need to go through the approval workflow

Acceptance Criteria

Given an admin submits a box request
When the request is saved
Then the system automatically approves the request
And provisions the new box for the admin
And the boxType is REQUESTED

Technical Tasks

  • Check if requester has admin=true on User object
  • Auto-approve if admin (skip Pending status)
  • Create box immediately with boxType=REQUESTED
  • Skip admin notification email for auto-approved requests
  • Send confirmation email to admin requester
  • Add tests for admin auto-approval

Implementation Notes

  • Check admin flag on User object in submitBoxRequest mutation
  • Still create BoxRequest record for audit trail
  • Status goes directly to Approved

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: authAuthentication and authorizationarea: box-managementBox/Xbiis management features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions