ProjectState: Remove controlFor(CurrentUser)

This commit decouples ProjectState from ProjectControl so that all
Control classes can go into their own subpackage to force callers to use
PermissionBackend instead.

Change-Id: I6c51f2def0aa2115c9b6122f6d38325b1f15615e
This commit is contained in:
Patrick Hiesel
2018-01-18 19:09:44 +01:00
parent 3093efc54a
commit 25f3144d70
4 changed files with 17 additions and 15 deletions

View File

@@ -208,7 +208,6 @@ public class RefControlTest {
@Inject private SingleVersionListener singleVersionListener;
@Inject private InMemoryDatabase schemaFactory;
@Inject private ThreadLocalRequestContext requestContext;
@Inject private ProjectControl.Factory projectControlFactory;
@Before
public void setUp() throws Exception {
@@ -856,7 +855,6 @@ public class RefControlTest {
projectCache,
allProjectsName,
allUsersName,
projectControlFactory,
envFactory,
repoManager,
rulesCache,