From e43c68aa484f44be6965c312094df68318ec8339 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 28 Aug 2017 15:13:16 +0200 Subject: [PATCH] Fix viewers number in secure iframe --- www/common/metadata-manager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/metadata-manager.js b/www/common/metadata-manager.js index fdba66dee..863a6a86e 100644 --- a/www/common/metadata-manager.js +++ b/www/common/metadata-manager.js @@ -47,7 +47,9 @@ define([], function () { }*/ }); //if (!containsYou) { mdo[meta.user.netfluxId] = meta.user; } - mdo[meta.user.netfluxId] = meta.user; + if (!priv.readOnly) { + mdo[meta.user.netfluxId] = meta.user; + } metadataObj.users = mdo; var lazyUserStr = JSON.stringify(metadataLazyObj.users[meta.user.netfluxId]); dirty = false;