some fixes about media management and media visualization in case of different owner of media in the same course.
Merge branch 'upstream/master'