Skip to content

Remove unassigned bartender consumption form access with assign_tenders enabled #113

@FrankvanMourik

Description

@FrankvanMourik

In the current implementation, when the assign_tenders boolean is True for an organization, all bartenders (either assigned or unassigned) can see the buttons to open POS&DCF. The logic used for rendering this button is:

{% if e in events_tending or request.organization == e.organizer and request.organization.assigns_tenders and is_tender %}

We propose an improvement that only assigned bartenders and organization managers can see the buttons. So that would change the rendering logic to:
{% if e in events_tending or request.organization == e.organizer and request.organization.assigns_tenders and is_manager %} where is_manager checks whether the user is a manager of e.organizer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions