Only specify sso on app install when optionalSso is true

This commit is contained in:
Johannes
2016-11-22 14:20:19 +01:00
parent d5bb797224
commit 23a2077056

View File

@@ -144,7 +144,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
accessRestriction: accessRestriction,
cert: $scope.appInstall.certificateFile,
key: $scope.appInstall.keyFile,
sso: $scope.appInstall.optionalSso && $scope.appInstall.accessRestrictionOption !== 'nosso'
sso: !$scope.appInstall.optionalSso ? undefined : ($scope.appInstall.accessRestrictionOption !== 'nosso')
};
Client.installApp($scope.appInstall.app.id, $scope.appInstall.app.manifest, $scope.appInstall.app.title, data, function (error) {