Skip to content

Ad-hoc "Add" should only be active if a User doesn't have permission to search/list the codes. #3

@michaelrog

Description

@michaelrog

If a user doesn't have the Manage Promotions permission, the search function is disabled. (Otherwise, it would expose a vector for enumerating coupon codes to people who don't already have access to the list.) For this reason, it's possible to add ad-hoc codes to the field; If the codes are valid, the relations are saved.

However, in the case of someone with appropriate permissions, the ad-hoc “Add” functionality really shouldn’t show up. A code would appear in search or not be available at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions