Added in logic to allow users with administrator access to edit the content of courses or events to still be able to view the links associated with them, by duplicating the logic as used in the file serving api for both types of content.