From f0f4348aa53ce986d884faba928da600aa4bafa8 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Tue, 15 Feb 2022 16:36:51 +0100 Subject: [PATCH] AccessControl: Enable empty list New button based on user permissions (#45398) (#45402) (cherry picked from commit d11f6a95a43941189ca2f11b9ea65d510e953d71) Co-authored-by: Gabriel MABILLE --- public/app/features/teams/TeamList.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/features/teams/TeamList.tsx b/public/app/features/teams/TeamList.tsx index 49813f28651..3f899e5da02 100644 --- a/public/app/features/teams/TeamList.tsx +++ b/public/app/features/teams/TeamList.tsx @@ -127,6 +127,7 @@ export class TeamList extends PureComponent { buttonIcon="users-alt" buttonLink="org/teams/new" buttonTitle=" New team" + buttonDisabled={!contextSrv.hasPermission(AccessControlAction.ActionTeamsCreate)} proTip="Assign folder and dashboard permissions to teams instead of users to ease administration." proTipLink="" proTipLinkTitle=""