Files
gerrit/gerrit-pgm
Shawn Pearce 6302ccb2bb Remove CapabilityControl from CurrentUser
Drop the capabilities reference from all user objects.  Most global
capabilities can be checked with the PermissionBackend.

QoS, query limits, and emailing reviewers still require the capability
object.  Bundle its factory into the call sites that need it.

Continue caching the CapabilityControl in an opaque property on the
CurrentUser, and also in the DefaultPermissionBackend.WithUserImpl.
Both of these sites reduce evaluations for critical properties like
"administrateServer".

Change-Id: I5aae8200e0a579ac1295a3fb7005703fd39d2696
2017-06-21 19:51:20 +09:00
..
2017-06-16 20:57:16 -07:00