private void CheckForUserApproval(WikiJobRequest request, JobApprovalLogic jobApprovalLogic) { var user = _userRetriever.GetUser(request.RequestingUsername); if (jobApprovalLogic.IsUserAutoApproved(user)) { request.Status = JobStatus.PreApproved; } else { request.Status = JobStatus.PendingPreApproval; } }
public User GetUser(Action <IUserHavingBuilder> having) { return(m_UserRetriever.GetUser(having)); }