Remove code for now dead spaces feature

This commit is contained in:
Johannes Zellner
2020-02-25 13:00:36 +01:00
parent 303c55dbba
commit d83eb32b6e
2 changed files with 6 additions and 15 deletions
+2 -10
View File
@@ -134,16 +134,8 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
$scope.appInstall.optionalSso = !!manifest.optionalSso;
$scope.appInstall.customAuth = !(manifest.addons['ldap'] || manifest.addons['oauth']);
// for spaces users, the User management is hidden. thus the admin flag check
if (!$scope.user.isAtLeastAdmin) {
// just install it with access restriction as just the user
var me = $scope.users.find(function (u) { return u.id === $scope.user.id; });
$scope.appInstall.accessRestrictionOption = 'groups';
$scope.appInstall.accessRestriction = { users: [ me ], groups: [] };
} else {
$scope.appInstall.accessRestrictionOption = 'any';
$scope.appInstall.accessRestriction = { users: [], groups: [] };
}
$scope.appInstall.accessRestrictionOption = 'any';
$scope.appInstall.accessRestriction = { users: [], groups: [] };
// set default ports
var allPorts = angular.extend({}, $scope.appInstall.app.manifest.tcpPorts, $scope.appInstall.app.manifest.udpPorts);