diff --git a/mod/resource/view.php b/mod/resource/view.php
index 59ad58c..133bdbd 100644
--- a/mod/resource/view.php
+++ b/mod/resource/view.php
@@ -83,6 +83,11 @@ if (count($files) < 1) {
     unset($files);
 }
 
+// If the course format is singleactivity and the viewer is an admin then override the display setting and set to auto.
+if ($course->format == 'singleactivity' && has_capability('moodle/course:manageactivities', $context)) {
+    $resource->display = RESOURCELIB_DISPLAY_AUTO;
+}
+
 $resource->mainfile = $file->get_filename();
 $displaytype = resource_get_final_display_type($resource);
 if ($displaytype == RESOURCELIB_DISPLAY_OPEN || $displaytype == RESOURCELIB_DISPLAY_DOWNLOAD) {
