瀏覽代碼

Fix issue with updating role permissions #13507

Johannes Schill 7 年之前
父節點
當前提交
97802f30ae
共有 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) {