Commit e1a1da90 by Torkel Ödegaard

fix: add folder permission fix

parent d35eca33
...@@ -157,8 +157,8 @@ export function addFolderPermission(newItem: NewDashboardAclItem): ThunkResult<v ...@@ -157,8 +157,8 @@ export function addFolderPermission(newItem: NewDashboardAclItem): ThunkResult<v
itemsToUpdate.push({ itemsToUpdate.push({
userId: newItem.userId, userId: newItem.userId,
teamId: newItem.teamId, teamId: newItem.teamId,
role: item.role, role: newItem.role,
permission: item.permission, permission: newItem.permission,
}); });
await getBackendSrv().post(`/api/folders/${folder.uid}/permissions`, { items: itemsToUpdate }); await getBackendSrv().post(`/api/folders/${folder.uid}/permissions`, { items: itemsToUpdate });
......
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