Skip to content

[MEWM] Restrict MEWM Access to Sponsors with Events #100

@andrewdimmer

Description

@andrewdimmer

Describe the bug
Currently, any sponsor is able to preform actions on the Mini Events and Workshops Module provided that the companyId of the event matches the companyId of the SPONSOR user who creates that event. Then, all of the approval process for the event is done by the organizer team, who will need to manually reject any events created by sponsors that don't have events as a sponsor benefit.

Expected behavior
Not all sponsors have events, so the MEWM should be restricted to only include sponsors that have events based on the benefits listed for them in the STPM (as exposed by #25 ). This will also likely require a breaking change to the STMP data type to standardize how the Event Types and STPM benefits connect.

Additional context
Additional thought will be required to figure out the edge case where the sponsor event benefits change after events have been created though, however, which is the reason this issue has been moved to unallocated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIFor work on the APIMini-Events and Workshops Module (MEWM)For all work pertaining to the Mini-Events and Workshops Module (MEWM)Web AppFor work on the main web appbugSomething isn't workingunallocatedCurrently not allocated to someone to work on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions