Skip to content

Commit

Permalink
Fix issue with updating role permissions grafana#13507
Browse files Browse the repository at this point in the history
  • Loading branch information
jschill committed Oct 3, 2018
1 parent d59c86c commit 97802f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/app/features/dashboard/state/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion public/app/features/folders/state/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 97802f3

Please sign in to comment.