Using api_is_allowed_in_course() in dropbox.