Fix for viewing publication pdf's in the admin