diff --git a/common/dataretention.go b/common/dataretention.go
index 95929361..2d84260a 100644
--- a/common/dataretention.go
+++ b/common/dataretention.go
@@ -262,7 +262,7 @@ func (c *RetentionCheck) cleanupFolder(folderPath string) error {
result.Elapsed = time.Since(startTime)
result.Info = "data retention check skipped: no permissions"
c.conn.Log(logger.LevelInfo, "user %#v does not have permissions to check retention on %#v, retention check skipped",
- c.conn.User, folderPath)
+ c.conn.User.Username, folderPath)
return nil
}
diff --git a/templates/webclient/files.html b/templates/webclient/files.html
index 217184ae..434bcef5 100644
--- a/templates/webclient/files.html
+++ b/templates/webclient/files.html
@@ -1047,7 +1047,7 @@ along with this program. If not, see .
case "svg":
case "ico":
var view_url = row['url']+"&inline=1";
- return ``;
+ return ``;
case "mp4":
case "mov":
return ``;