浏览代码

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

Fix issue with updating role permissions #13507
Carl Bergquist 7 年之前
父节点
当前提交
f35fd0c5a3
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      public/app/features/dashboard/state/actions.ts
  2. 1 1
      public/app/features/folders/state/actions.ts

+ 1 - 1
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) {

+ 1 - 1
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) {