Remove ConfigUtil.groupsFor() methods.
This method did not embrace guice and directly queried the database, where GroupCache should have been used. Updated the calling code accordingly. Change-Id: I094c9ec8aa4fb2d23e61f9a717203c33ff785776
This commit is contained in:
@@ -15,8 +15,7 @@
|
||||
package com.google.gerrit.server.config;
|
||||
|
||||
import com.google.gerrit.reviewdb.client.AccountGroup;
|
||||
import com.google.gerrit.reviewdb.server.ReviewDb;
|
||||
import com.google.gwtorm.server.SchemaFactory;
|
||||
import com.google.gerrit.server.account.GroupCache;
|
||||
import com.google.inject.Inject;
|
||||
|
||||
import org.eclipse.jgit.lib.Config;
|
||||
@@ -25,9 +24,9 @@ import java.util.Collections;
|
||||
|
||||
public class GitReceivePackGroupsProvider extends GroupSetProvider {
|
||||
@Inject
|
||||
public GitReceivePackGroupsProvider(@GerritServerConfig Config config,
|
||||
SchemaFactory<ReviewDb> db) {
|
||||
super(config, db, "receive", null, "allowGroup");
|
||||
public GitReceivePackGroupsProvider(GroupCache gc,
|
||||
@GerritServerConfig Config config) {
|
||||
super(gc, config, "receive", null, "allowGroup");
|
||||
|
||||
// If no group was set, default to "registered users"
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user