On Mon, Jan 20, 2020 at 5:13 AM Raihaan Shouhell
<
raihaan...@gmail.com> wrote:
> I'd like to see if the relevant jelly files that call this has access to items and the use of getItems() (and hasPermission) can be reduced.
Doubtful since this is just overriding
https://javadoc.jenkins.io/hudson/model/View.html#getDisplayName--
If permission checks are a bottleneck here it might be a problem in
the `AuthorizationStrategy`. Alternately, it would probably be fine to
wrap the `getItems` call inside `ACL.as(ACL.SYSTEM)` since someone
with permission to view the organization folder very likely also has
permission to view all the child repositories (it would be an obscure
authorization strategy that decided otherwise), and at worst the
leaked information would be a count of hidden subfolders.