Skip to content

Commit

Permalink
Fix small bug where folder permissions were calculated too often
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobsonMT committed Nov 27, 2023
1 parent c6c15a8 commit c17beee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/ngalert/migration/permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (om *OrgMigration) getOrCreateMigratedFolder(ctx context.Context, l log.Log
if !ok {
permissionsToFolder = make(map[permissionHash]*folder.Folder)
// nolint:staticcheck
om.permissionsMap[dash.FolderID] = permissionsToFolder
om.permissionsMap[parentFolder.ID] = permissionsToFolder

folderPerms, err := om.getFolderPermissions(ctx, parentFolder)
if err != nil {
Expand Down

0 comments on commit c17beee

Please sign in to comment.