mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 04:28:39 +02:00
This commit is contained in:
parent
4c342746e9
commit
a6a1d59f6f
2 changed files with 11 additions and 0 deletions
|
@ -73,9 +73,16 @@
|
|||
{% if is_portfolio_user and not is_domain_manager %}
|
||||
<div class="usa-alert usa-alert--info usa-alert--slim">
|
||||
<div class="usa-alert__body">
|
||||
{% if not is_portfolio_admin %}
|
||||
<p class="usa-alert__text ">
|
||||
You don't have access to manage {{domain.name}}. If you need to make updates, contact one of the listed domain managers.
|
||||
</p>
|
||||
{% else %}
|
||||
{% url 'member' member_pk=user_portfolio_permission.id as edit_member_url %}
|
||||
<p class="usa-alert__text ">
|
||||
You don't have access to manage {{domain.name}}. If you need to become a domain manager, edit the domain assignments in your <a href="{{edit_member_url}}">member profile</a>.
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -405,6 +405,10 @@ class DomainView(DomainBaseView):
|
|||
default_emails = DefaultEmail.get_all_emails()
|
||||
|
||||
context["hidden_security_emails"] = default_emails
|
||||
context["user_portfolio_permission"] = UserPortfolioPermission.objects.filter(
|
||||
user=self.request.user,
|
||||
portfolio=self.request.session.get("portfolio")
|
||||
).first()
|
||||
|
||||
security_email = self.object.get_security_email()
|
||||
if security_email is None or security_email in default_emails:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue