Remove code for now dead spaces feature
This commit is contained in:
+2
-10
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user