mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-31 03:39:19 -04:00
Only offer agreement download to non-crown for now
We don’t have the crown agreement in a nice downloadable format at the moment.
This commit is contained in:
@@ -159,7 +159,11 @@ rpa.gov.uk:
|
||||
agreement_signed: true
|
||||
mcga.gov.uk:
|
||||
owner: Maritime and Coastguard Agency
|
||||
agreement_signed: true
|
||||
agreement_signed: true
|
||||
metoffice.gov.uk:
|
||||
owner: Met Office
|
||||
agreement_signed: false
|
||||
crown: true
|
||||
|
||||
# Local Government
|
||||
aberdeencityandshire-sdpa.gov.uk:
|
||||
|
||||
@@ -2,12 +2,11 @@ from flask import render_template, send_file
|
||||
from flask_login import login_required
|
||||
|
||||
from app.main import main
|
||||
from app.main.views.sub_navigation_dictionaries import features_nav
|
||||
from app.main.s3_client import get_mou
|
||||
from app.main.views.sub_navigation_dictionaries import features_nav
|
||||
from app.utils import AgreementInfo
|
||||
|
||||
|
||||
|
||||
@main.route('/agreement')
|
||||
@login_required
|
||||
def agreement():
|
||||
|
||||
@@ -484,7 +484,7 @@ class AgreementInfo:
|
||||
'agreement.'.format(self.owner)
|
||||
)
|
||||
|
||||
if self.crown_status is not None:
|
||||
if self.crown_status is False:
|
||||
return ((
|
||||
'{} <a href="{}">Download a copy</a>.'
|
||||
).format(self._acceptance_required, download_link))
|
||||
@@ -504,7 +504,7 @@ class AgreementInfo:
|
||||
|
||||
@property
|
||||
def crown_status_or_404(self):
|
||||
if self.crown_status is None:
|
||||
if self.crown_status in {None, True}:
|
||||
abort(404)
|
||||
return self.crown_status
|
||||
|
||||
|
||||
Reference in New Issue
Block a user