mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-30 19:10:42 -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:
@@ -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