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

Fix issue with updating role permissions #13507
pull/13511/head
Carl Bergquist 7 years ago committed by GitHub
commit f35fd0c5a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/features/dashboard/state/actions.ts
  2. 2
      public/app/features/folders/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) {

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

Loading…
Cancel
Save