From 97802f30ae3f6d1a66452dbf95e9506a9120f3c9 Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Wed, 3 Oct 2018 13:37:00 +0200 Subject: [PATCH] Fix issue with updating role permissions #13507 --- public/app/features/dashboard/state/actions.ts | 2 +- public/app/features/folders/state/actions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/dashboard/state/actions.ts b/public/app/features/dashboard/state/actions.ts index 82333817b2b12..9e923f6bcb739 100644 --- a/public/app/features/dashboard/state/actions.ts +++ b/public/app/features/dashboard/state/actions.ts @@ -58,7 +58,7 @@ export function updateDashboardPermission( continue; } - const updated = toUpdateItem(itemToUpdate); + const updated = toUpdateItem(item); // if this is the item we want to update, update it's permisssion if (itemToUpdate === item) { diff --git a/public/app/features/folders/state/actions.ts b/public/app/features/folders/state/actions.ts index df81acb91eb6e..cd02915e58640 100644 --- a/public/app/features/folders/state/actions.ts +++ b/public/app/features/folders/state/actions.ts @@ -110,7 +110,7 @@ export function updateFolderPermission(itemToUpdate: DashboardAcl, level: Permis continue; } - const updated = toUpdateItem(itemToUpdate); + const updated = toUpdateItem(item); // if this is the item we want to update, update it's permisssion if (itemToUpdate === item) {