Example #1
0
        public static User findUserById(int?id)
        {
            User user = OCRC.findUserById(id);

            user.role = new bool[4];
            if (user.accesslvl == 1)
            {
                user.role[0] = true;
            }
            if (user.accesslvl == 2)
            {
                user.role[1] = true;
            }
            if (user.teamIdentifier != null)
            {
                user.role[2] = true;
            }
            if (user.schoolIdentifier != null)
            {
                user.role[3] = true;
            }

            return(user);
        }