org links don't show if user doesn't have permissions

This commit is contained in:
chrisw
2018-03-20 16:11:57 +00:00
parent a6eeb3cd73
commit c47a4ab830
5 changed files with 18 additions and 7 deletions

View File

@@ -2756,12 +2756,12 @@ def mock_update_service_organisation(mocker):
@pytest.fixture(scope='function')
def mock_get_organisation_services(mocker):
def mock_get_organisation_services(mocker, api_user_active):
def _get_organisation_services(organisation_id):
return [
service_json('12345', 'service one'),
service_json('67890', 'service two'),
service_json('09876', 'service three')
service_json(SERVICE_ONE_ID, 'service one', [api_user_active.id])
]
return mocker.patch(