Skip to content

Commit 6ff553b

Browse files
committed
Handle notifications to shared users better.
1 parent d7ed200 commit 6ff553b

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

jasmin_services/templates/jasmin_notifications/mail/grant_created/content.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% block content %}
44
Hi {{ user.first_name }},
5-
{% if target.access.user.user_type == "SERVICE" %}
5+
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
66
The following access has been granted:
77

88
Service: {{ target.access.role.service }}

jasmin_services/templates/jasmin_notifications/mail/grant_expired/content.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Hi {{ user.first_name }},
55

66
The following access has expired:
7-
{% if target.access.user.user_type == "SERVICE" %}
7+
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
88
Service: {{ target.access.role.service }}
99
Role: {{ target.access.role.name }}
1010
User: {{ target.access.user }}

jasmin_services/templates/jasmin_notifications/mail/grant_expiring/content.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Hi {{ user.first_name }},
55

66
The following access will expire soon:
7-
{% if target.access.user.user_type == "SERVICE" %}
7+
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
88
Service: {{ target.access.role.service }}
99
Role: {{ target.access.role.name }}
1010
User: {{ target.access.user }}

jasmin_services/templates/jasmin_notifications/mail/grant_revoked/content.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Hi {{ user.first_name }},
55

66
The following access has been revoked:
7-
{% if target.access.user.user_type == "SERVICE" %}
7+
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
88
Service: {{ target.access.role.service }}
99
Role: {{ target.access.role.name }}
1010
User: {{ target.access.user }}

jasmin_services/templates/jasmin_notifications/mail/request_confirm/content.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Hi {{ user.first_name }},
55

66
The following request has been submitted for approval:
7-
{% if target.access.user.user_type == "SERVICE" %}
7+
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
88
Service: {{ target.access.role.service }}
99
Role: {{ target.access.role.name }}
1010
User: {{ target.access.user }}

jasmin_services/templates/jasmin_notifications/mail/request_incomplete/content.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Hi {{ user.first_name }},
55

66
The following request requires additional information:
7-
{% if target.access.user.user_type == "SERVICE" %}
7+
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
88
Service: {{ target.access.role.service }}
99
Role: {{ target.access.role.name }}
1010
User: {{ target.access.user }}

jasmin_services/templates/jasmin_notifications/mail/request_rejected/content.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Hi {{ user.first_name }},
55

66
The following request has been rejected:
7-
{% if target.access.user.user_type == "SERVICE" %}
7+
{% if (target.access.user.user_type == "SERVICE" or (target.access.user.user_type == "SHARED") %}
88
Service: {{ target.access.role.service }}
99
Role: {{ target.access.role.name }}
1010
User: {{ target.access.user }}

0 commit comments

Comments
 (0)