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:
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user