From de4e90b52e6662e49853c62191a6ed8d4dd0fd1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 22 Dec 2017 12:40:27 +0100 Subject: [PATCH] Check for undefined type when getting the acl string representation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #367 Signed-off-by: Julius Härtl --- js/controller/BoardController.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/controller/BoardController.js b/js/controller/BoardController.js index 062c05ca1..01990f108 100644 --- a/js/controller/BoardController.js +++ b/js/controller/BoardController.js @@ -215,6 +215,9 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St }; $scope.aclTypeString = function (acl) { + if (typeof acl === 'undefined') { + return ''; + } switch (acl.type) { case OC.Share.SHARE_TYPE_USER: return 'user';