Files
gerrit/plugins
Patrick Hiesel 3d9e06245a GroupBackend: Accept CurrentUser instead of IdentifiedUser
Up to now, the signature of GroupBackend#membershipsOf was tied
to IdentifiedUser instead of the the more general CurrentUser.

This commit changes that to make GroupBackends more flexible.
GroupBackends can decide to not treat anything other than
IdentifiedUser by just returning GroupMembership.EMPTY for
all other calls.

This will allow us to create an ExternalUser, a user that we have
some knowledge (say external IDs) about, but that isn't backed by
a Gerrit account and should not be. We can provide these users
with a basic set of functionality (say read access to specific
endpoints).

A good example for this is code browsing: When users browse code,
we want to check permissions to know what content to serve. At the
same time, they might not be ready just yet to create a Gerrit
account.

Change-Id: Idc9a7630e8dc6cd34b51852454d66d4fe7dc9c2c
2020-12-21 15:05:27 +00:00
..
2020-06-04 18:33:41 +00:00
2020-11-23 18:10:46 +00:00
2020-11-26 08:04:16 +00:00
2020-12-08 11:05:57 +00:00
2020-10-16 23:16:14 +00:00
2020-12-17 21:11:44 +00:00
2020-05-19 01:21:35 +00:00
2020-07-03 06:27:27 +02:00
2020-08-27 10:12:15 +02:00