mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 00:20:43 -04:00
Let users download the crown agreement
This (partially) reverts commit dca5546cbd
Depends on
- [ ] agreement being uploaded to the bucket in all environments as
`crown.pdf`
This commit is contained in:
@@ -484,7 +484,7 @@ class AgreementInfo:
|
||||
'agreement.'.format(self.owner)
|
||||
)
|
||||
|
||||
if self.crown_status is False:
|
||||
if self.crown_status is not None:
|
||||
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 in {None, True}:
|
||||
if self.crown_status is None:
|
||||
abort(404)
|
||||
return self.crown_status
|
||||
|
||||
|
||||
Reference in New Issue
Block a user