Create ChangeUpdates with IdentifiedUsers rather than Accounts
Allows the user to be passed into MetaDataUpdate.create() so we can create updates by arbitrary users, e.g. when posting a review on behalf of someone else. Change-Id: I71968d252e04651d7b597034fa17273e9749d0b0
This commit is contained in:
@@ -74,13 +74,14 @@ public class IdentifiedUser extends CurrentUser {
|
||||
private final GroupBackend groupBackend;
|
||||
|
||||
@Inject
|
||||
GenericFactory(
|
||||
CapabilityControl.Factory capabilityControlFactory,
|
||||
final AuthConfig authConfig,
|
||||
final @AnonymousCowardName String anonymousCowardName,
|
||||
final @CanonicalWebUrl Provider<String> canonicalUrl,
|
||||
final Realm realm, final AccountCache accountCache,
|
||||
final GroupBackend groupBackend) {
|
||||
public GenericFactory(
|
||||
@Nullable CapabilityControl.Factory capabilityControlFactory,
|
||||
AuthConfig authConfig,
|
||||
@AnonymousCowardName String anonymousCowardName,
|
||||
@CanonicalWebUrl Provider<String> canonicalUrl,
|
||||
Realm realm,
|
||||
AccountCache accountCache,
|
||||
GroupBackend groupBackend) {
|
||||
this.capabilityControlFactory = capabilityControlFactory;
|
||||
this.authConfig = authConfig;
|
||||
this.anonymousCowardName = anonymousCowardName;
|
||||
|
||||
Reference in New Issue
Block a user