diff --git a/templates/applications/settings.html b/templates/applications/settings.html index e4c51f2c..5efe09bb 100644 --- a/templates/applications/settings.html +++ b/templates/applications/settings.html @@ -78,7 +78,7 @@ application, members, new_member_form, - "applications.settings", + "applications.create_member", user_can(permissions.CREATE_APPLICATION_MEMBER)) }}
diff --git a/tests/routes/applications/test_settings.py b/tests/routes/applications/test_settings.py index c0b60694..e26dc9a3 100644 --- a/tests/routes/applications/test_settings.py +++ b/tests/routes/applications/test_settings.py @@ -87,6 +87,13 @@ def test_application_settings(client, user_session): url_for("applications.settings", application_id=application.id) ) assert response.status_code == 200 + # the assertion below is a quick check to prevent regressions -- this ensures that + # the correct URL for creating a member for an application is _somewhere_ in + # the settings page. + assert ( + url_for("applications.create_member", application_id=application.id) + in response.data.decode() + ) def test_edit_application_environments_obj(app, client, user_session):