Commit f35fd0c5 by Carl Bergquist Committed by GitHub

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

Fix issue with updating role permissions #13507
parents 99f2342f 97802f30
...@@ -58,7 +58,7 @@ export function updateDashboardPermission( ...@@ -58,7 +58,7 @@ export function updateDashboardPermission(
continue; continue;
} }
const updated = toUpdateItem(itemToUpdate); const updated = toUpdateItem(item);
// if this is the item we want to update, update it's permisssion // if this is the item we want to update, update it's permisssion
if (itemToUpdate === item) { if (itemToUpdate === item) {
......
...@@ -110,7 +110,7 @@ export function updateFolderPermission(itemToUpdate: DashboardAcl, level: Permis ...@@ -110,7 +110,7 @@ export function updateFolderPermission(itemToUpdate: DashboardAcl, level: Permis
continue; continue;
} }
const updated = toUpdateItem(itemToUpdate); const updated = toUpdateItem(item);
// if this is the item we want to update, update it's permisssion // if this is the item we want to update, update it's permisssion
if (itemToUpdate === item) { if (itemToUpdate === item) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment