Check for undefined type when getting the acl string representation

fixes #367

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-12-22 12:40:27 +01:00
parent dc37dd2c60
commit de4e90b52e

View File

@@ -215,6 +215,9 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
}; };
$scope.aclTypeString = function (acl) { $scope.aclTypeString = function (acl) {
if (typeof acl === 'undefined') {
return '';
}
switch (acl.type) { switch (acl.type) {
case OC.Share.SHARE_TYPE_USER: case OC.Share.SHARE_TYPE_USER:
return 'user'; return 'user';