Remove access_developer_docs as a permission type. It does not make sense to have permission for viewing the documentation.

On the downgrade method of the db script the assumption that all users with manage_api_keys had the access_developer_docs permission.
This commit is contained in:
Rebecca Law
2016-03-29 17:00:42 +01:00
parent 376a074f5f
commit c7c845cea6
5 changed files with 13 additions and 9 deletions

View File

@@ -600,8 +600,7 @@ def test_add_existing_user_to_another_service_with_all_permissions(notify_api,
json_resp = json.loads(resp.get_data(as_text=True))
permissions = json_resp['data']['permissions'][str(sample_service.id)]
expected_permissions = ['send_texts', 'send_emails', 'send_letters', 'manage_users',
'manage_settings', 'manage_templates', 'manage_api_keys',
'access_developer_docs']
'manage_settings', 'manage_templates', 'manage_api_keys']
assert sorted(expected_permissions) == sorted(permissions)
@@ -745,7 +744,7 @@ def test_add_existing_user_to_another_service_with_manage_api_keys(notify_api,
json_resp = json.loads(resp.get_data(as_text=True))
permissions = json_resp['data']['permissions'][str(sample_service.id)]
expected_permissions = ['manage_api_keys', 'access_developer_docs']
expected_permissions = ['manage_api_keys']
assert sorted(expected_permissions) == sorted(permissions)