Skip to content

feat: confirm / decline booking as org admin managed user #23153

@linear

Description

@linear

Problem

Platform customer wants the ability for managed user who is platform org admin to be able to accept or decline managed user bookings.

Solution

  1. Update confirm.handler.ts by adding extra check that checks if logged in user in the handler has admin or owner membership in an organization that either the booking user has membership in or if the booking user is part of a team that belongs to the organization where logged in user is admin or owner.
  2. Add e2e api test in managed-user-bookings.e2e-spec.ts by creating managed user that is platform organization admin and then check if using platform org admin access token it is possible to accept and decline managed user's booking who belongs to same org. Also, check if such request results in an error if admin is trying to accept booking of a person who is not part of the org.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiarea: API, enterprise API, access token, OAuthorganizationsarea: organizations, orgsplatformAnything related to our platform plan✨ featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions