spaces: use edition instead of setting

This commit is contained in:
Girish Ramakrishnan
2018-08-28 18:55:13 -07:00
parent dd53d0d575
commit d316d216db
7 changed files with 10 additions and 74 deletions

View File

@@ -1,7 +1,7 @@
'use strict';
angular.module('Application').controller('AppStoreController', ['$scope', '$location', '$timeout', '$routeParams', 'Client', 'AppStore', function ($scope, $location, $timeout, $routeParams, Client, AppStore) {
Client.onReady(function () { if (!Client.getUserInfo().admin && !Client.getConfig().spaces.enabled) $location.path('/'); });
Client.onReady(function () { if (!Client.getUserInfo().admin && !Client.getConfig().spaces) $location.path('/'); });
$scope.HOST_PORT_MIN = 1024;
$scope.HOST_PORT_MAX = 65535;
@@ -484,7 +484,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
}
// non admins cannot read appstore settings in spaces mode
if (!$scope.user.admin && $scope.config.spaces.enabled) {
if (!$scope.user.admin && $scope.config.spaces) {
$scope.validAppstoreAccount = true;
return callback();
}