Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 public User GetUser(Action <IUserHavingBuilder> having)
 {
     return(m_UserRetriever.GetUser(having));
 }