Exemple #1
0
        public bool getAdminRights()
        {
            TeamMembers tm = teamMemberRepo.getSelectedEmployee(getUsername());

            if (tm != null)
            {
                return(tm.AdminRights);
            }
            else
            {
                return(false);
            }
        }
 public TeamMembers getLoggedInUser()
 {
     return(teamMemberRepo.getSelectedEmployee(getUsername()));
 }
 public AuthorizationRepository()
 {
     teamMemberRepo = new TeamMemberRepository();
     empProjectRepo = new EmployeeProjectsRepository();
     loggedInuser   = teamMemberRepo.getSelectedEmployee(getUsername());
 }