Allow GPs to click through to the agreement

We want GPs to be able to accept the agreement online. But at the moment
they don’t get automatically assigned to organisations. So we need to
let them enter the agreement accepting journey even if they don’t have
an organisation set up.
This commit is contained in:
Chris Hill-Scott
2019-09-04 15:55:09 +01:00
parent 2fe7887ec6
commit d41effe8ce
4 changed files with 64 additions and 9 deletions

View File

@@ -591,6 +591,13 @@ class Service(JSONModel):
def get_api_key(self, id):
return self._get_by_id(self.api_keys, id)
@property
def able_to_accept_agreement(self):
return (
self.organisation.agreement_signed is not None
or self.organisation_type == 'nhs_gp'
)
@property
def request_to_go_live_tags(self):
return list(self._get_request_to_go_live_tags())