Skip to content

Commit

Permalink
Handle notifications to shared users better.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanning9 committed May 12, 2023
1 parent d7ed200 commit 6ff553b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block content %}
Hi {{ user.first_name }},
{% if target.access.user.user_type == "SERVICE" %}
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
The following access has been granted:

Service: {{ target.access.role.service }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Hi {{ user.first_name }},

The following access has expired:
{% if target.access.user.user_type == "SERVICE" %}
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
Service: {{ target.access.role.service }}
Role: {{ target.access.role.name }}
User: {{ target.access.user }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Hi {{ user.first_name }},

The following access will expire soon:
{% if target.access.user.user_type == "SERVICE" %}
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
Service: {{ target.access.role.service }}
Role: {{ target.access.role.name }}
User: {{ target.access.user }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Hi {{ user.first_name }},

The following access has been revoked:
{% if target.access.user.user_type == "SERVICE" %}
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
Service: {{ target.access.role.service }}
Role: {{ target.access.role.name }}
User: {{ target.access.user }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Hi {{ user.first_name }},

The following request has been submitted for approval:
{% if target.access.user.user_type == "SERVICE" %}
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
Service: {{ target.access.role.service }}
Role: {{ target.access.role.name }}
User: {{ target.access.user }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Hi {{ user.first_name }},

The following request requires additional information:
{% if target.access.user.user_type == "SERVICE" %}
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
Service: {{ target.access.role.service }}
Role: {{ target.access.role.name }}
User: {{ target.access.user }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Hi {{ user.first_name }},

The following request has been rejected:
{% if target.access.user.user_type == "SERVICE" %}
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
Service: {{ target.access.role.service }}
Role: {{ target.access.role.name }}
User: {{ target.access.user }}
Expand Down

0 comments on commit 6ff553b

Please sign in to comment.