Skip to content

authz: use FilePermissionsFunc in FilterActorFileInfos

Administrator requested to merge k/fileinfo into main

Created by: keegancsmith

FilePermissionsFunc is significantly faster than calling ActorPermissions per file. FilterActorFileInfos is used by ReadDir on the gitserver client, so should speed up those operations.

Test Plan: go test

Part of https://github.com/sourcegraph/sourcegraph/issues/41347

Merge request reports

Loading