From 075eddb1db87757e9bf75853bed529d0ebe3a670 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 21 Feb 2020 10:50:59 -0500 Subject: [PATCH] guard against a typeError if there are no owners --- www/common/inner/access.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/inner/access.js b/www/common/inner/access.js index 102fb67dc..6137635e5 100644 --- a/www/common/inner/access.js +++ b/www/common/inner/access.js @@ -981,7 +981,7 @@ define([ var state = data.restricted ? Messages.allow_enabled : Messages.allow_disabled; content.push(h('label', Messages._getKey('allow_label', [state]))); if (data.restricted) { - var _allowed = Util.deduplicateString(data.owners.concat(data.allowed)); + var _allowed = Util.deduplicateString((data.owners || []).concat(data.allowed)); var _allowedGrid = getUserList(common, _allowed); content.push(_allowedGrid.div); }