Privacy controls were not being checked.

The typeconfig was not being retrieved from the db due to the erroneous
use of the id column on the lti table, rather than the course column.