Reduce usage of ProjectControl
Reduce the usage of ProjectControl by replacing it with ProjectState and
CurrentUser where it was just used as a container for these.
Eventually, {Ref,Change,Project}Control should be package-private. This
commit is an incremental step towards that goal.
Change-Id: I204d7cae3816e81a7859672a6ac3b5d5273997fa
			
			
This commit is contained in:
		@@ -147,7 +147,8 @@ public abstract class ProjectAccessHandler<T> extends Handler<T> {
 | 
			
		||||
          setParent
 | 
			
		||||
              .get()
 | 
			
		||||
              .validateParentUpdate(
 | 
			
		||||
                  projectControl,
 | 
			
		||||
                  projectControl.getProject().getNameKey(),
 | 
			
		||||
                  projectControl.getUser().asIdentifiedUser(),
 | 
			
		||||
                  MoreObjects.firstNonNull(parentProjectName, allProjects).get(),
 | 
			
		||||
                  checkIfOwner);
 | 
			
		||||
        } catch (AuthException e) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user