Skip to content

Commit

Permalink
Add access override for security admins
Browse files Browse the repository at this point in the history
Allows anyone with Security Admin access to see attendees' legal name, age, and emergency contact info.
  • Loading branch information
kitsuta committed Jul 6, 2023
1 parent 77fcfca commit 744718e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions uber/templates/fields/attendee.html
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ <h2 class="text-center">{{ c.DEALER_APP_TERM|title }}</h2>
</div>
{% endif %}

{% if full_read %}
{% if full_read or c.SECURITY_ADMIN_ACCESS %}
<div class="form-group">
<label for="legal_name" class="col-sm-3 control-label">Name as appears on <span class="text-nowrap">Legal Photo ID</span></label>
{% call macros.read_only_if(read_only, attendee.legal_name) %}
Expand Down Expand Up @@ -1029,7 +1029,7 @@ <h4>{{ tier.name }}</h4>
{% endset %}


{% if not c.COLLECT_EXACT_BIRTHDATE or full_read %}
{% if not c.COLLECT_EXACT_BIRTHDATE or full_read or c.SECURITY_ADMIN_ACCESS %}
{% set age %}
{% set read_only = age_ro or page_ro %}
<script type="text/javascript">
Expand Down Expand Up @@ -1210,7 +1210,7 @@ <h4>{{ tier.name }}</h4>


{% set emergency_contact %}
{% if full_read %}
{% if full_read or c.SECURITY_ADMIN_ACCESS %}
{% if attendee.is_new or not admin_area or c.HAS_REG_ADMIN_ACCESS %}
{% set read_only = emergency_contact_ro or page_ro %}
<div class="form-group">
Expand All @@ -1235,7 +1235,7 @@ <h4>{{ tier.name }}</h4>


{% set onsite_contact %}
{% if full_read %}
{% if full_read or c.SECURITY_ADMIN_ACCESS %}
{% if attendee.is_new or not admin_area or c.HAS_REG_ADMIN_ACCESS %}
{% set read_only = onsite_contact_ro or page_ro %}
<div class="form-group">
Expand Down

0 comments on commit 744718e

Please sign in to comment.