diff --git a/src/views/apps.js b/src/views/apps.js
index 66e8ce5e8..328ea1465 100644
--- a/src/views/apps.js
+++ b/src/views/apps.js
@@ -52,7 +52,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appConfigure.app = app;
if ($scope.user.admin) {
$scope.appConfigure.location = app.location;
- } else { // strip the trailing username
+ } else { // strip the trailing username in spaces mode
$scope.appConfigure.location = app.location === $scope.spacesSuffix ? '' : app.location.replace(new RegExp('-' + $scope.spacesSuffix + '$'),'');
}
$scope.appConfigure.domain = $scope.domains.filter(function (d) { return d.domain === app.domain; })[0];
@@ -604,7 +604,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.spacesSuffix = $scope.user.username.replace(/\./g, '-');
- if ($scope.user.admin || $scope.config.spaces.enabled) {
+ if ($scope.user.admin || $scope.config.spaces) {
fetchUsers();
fetchGroups();
getDomains();
diff --git a/src/views/appstore.js b/src/views/appstore.js
index 99cdf8bad..cd3942b2f 100644
--- a/src/views/appstore.js
+++ b/src/views/appstore.js
@@ -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();
}
diff --git a/src/views/settings.html b/src/views/settings.html
index 8f754b462..b754b41a9 100644
--- a/src/views/settings.html
+++ b/src/views/settings.html
@@ -325,27 +325,4 @@