From c68a89b1c32d0e5b1f3f2a8e360b6f48a1636785 Mon Sep 17 00:00:00 2001 From: RachelElysia <71795832+RachelElysia@users.noreply.github.com> Date: Fri, 4 Jun 2021 15:19:39 -0400 Subject: [PATCH] Team maintainer can add host (#961) --- frontend/pages/hosts/ManageHostsPage/ManageHostsPage.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.jsx b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.jsx index d9be8ac497..07ba884947 100644 --- a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.jsx +++ b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.jsx @@ -679,7 +679,8 @@ const mapStateToProps = (state, { location, params }) => { const currentUser = state.auth.user; const canAddNewHosts = permissionUtils.isGlobalAdmin(currentUser) || - permissionUtils.isGlobalMaintainer(currentUser); + permissionUtils.isGlobalMaintainer(currentUser) || + permissionUtils.isAnyTeamMaintainer(currentUser); const canAddNewLabels = permissionUtils.isGlobalAdmin(currentUser) || permissionUtils.isGlobalMaintainer(currentUser);