Dashboard: Fix dashboard update permission check (#48746)

* Change dash permission check for dashboards that are moved to a different folder
This commit is contained in:
Ieva
2022-05-09 12:01:03 +02:00
committed by GitHub
parent 53a4f3913c
commit 6923b4c6c6
3 changed files with 15 additions and 18 deletions
@@ -326,10 +326,6 @@ func getExistingDashboardByIdOrUidForUpdate(sess *sqlstore.DBSession, dash *mode
dash.SetId(existingByUid.Id)
dash.SetUid(existingByUid.Uid)
existing = existingByUid
if !dash.IsFolder {
isParentFolderChanged = true
}
}
if (existing.IsFolder && !dash.IsFolder) ||