public static IEnumerable <string> GetControllableCoursesId(this IPrincipal principal)
        {
            if (!principal.IsSystemAdministrator())
            {
                return(principal.GetCoursesIdFor(CourseRole.CourseAdmin));
            }
            var courseManager = WebCourseManager.Instance;

            return(courseManager.GetCourses().Select(course => course.Id));
        }