Merge pull request #13509 from grafana/13507-permissions-on-role-fix

Fix issue with updating role permissions #13507
This commit is contained in:
Carl Bergquist
2018-10-03 14:20:12 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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) {