mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-24 12:21:22 -05:00
Rename URL to remove term ‘whitelist’
See c31264d4c for rationale. To avoid confusion the codebase should use
the same terminology as the UI.
This commit is contained in:
@@ -52,7 +52,8 @@ def api_documentation(service_id):
|
||||
return redirect(url_for('.documentation'), code=301)
|
||||
|
||||
|
||||
@main.route("/services/<uuid:service_id>/api/whitelist", methods=['GET', 'POST'])
|
||||
@main.route("/services/<uuid:service_id>/api/whitelist", methods=['GET', 'POST'], endpoint='old_guest_list')
|
||||
@main.route("/services/<uuid:service_id>/api/guest-list", methods=['GET', 'POST'])
|
||||
@user_has_permissions('manage_api_keys')
|
||||
def guest_list(service_id):
|
||||
form = GuestList()
|
||||
|
||||
@@ -349,6 +349,7 @@ class HeaderNavigation(Navigation):
|
||||
'no_cookie.view_template_version_preview',
|
||||
'view_template_versions',
|
||||
'guest_list',
|
||||
'old_guest_list',
|
||||
'who_can_use_notify',
|
||||
'who_its_for',
|
||||
}
|
||||
@@ -481,6 +482,7 @@ class MainNavigation(Navigation):
|
||||
'received_text_messages_callback',
|
||||
'revoke_api_key',
|
||||
'guest_list',
|
||||
'old_guest_list',
|
||||
},
|
||||
}
|
||||
|
||||
@@ -976,6 +978,7 @@ class CaseworkNavigation(Navigation):
|
||||
'no_cookie.view_template_version_preview',
|
||||
'view_template_versions',
|
||||
'guest_list',
|
||||
'old_guest_list',
|
||||
'who_can_use_notify',
|
||||
'who_its_for',
|
||||
}
|
||||
@@ -1286,6 +1289,7 @@ class OrgNavigation(Navigation):
|
||||
'no_cookie.view_template_version_preview',
|
||||
'view_template_versions',
|
||||
'guest_list',
|
||||
'old_guest_list',
|
||||
'who_can_use_notify',
|
||||
'who_its_for',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user