NestedFolders: use guardian.NewByUID to check folder permissions (#62864)

This commit is contained in:
Josh Hunt 2023-02-06 10:14:22 +00:00 committed by GitHub
parent 9893408af9
commit 4d268cbcdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ func (s *Service) GetChildren(ctx context.Context, cmd *folder.GetChildrenQuery)
continue
}
g, err := guardian.New(ctx, f.ID, f.OrgID, cmd.SignedInUser)
g, err := guardian.NewByUID(ctx, f.UID, f.OrgID, cmd.SignedInUser)
if err != nil {
return nil, err
}