Disable various views for non-operators
This commit is contained in:
+2
-1
@@ -233,7 +233,8 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
|
||||
// derive feature flags from edition
|
||||
config.features = {
|
||||
spaces: config.edition === 'education',
|
||||
hyphenatedSubdomains: config.edition === 'hostingprovider'
|
||||
hyphenatedSubdomains: config.edition === 'hostingprovider',
|
||||
operatorActions: config.edition !== 'hostingprovider'
|
||||
};
|
||||
|
||||
angular.copy(config, this._config);
|
||||
|
||||
+1
-1
@@ -182,7 +182,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
|
||||
$scope.initialized = true;
|
||||
|
||||
if ($scope.user.admin) {
|
||||
if ($scope.user.admin && $scope.config.features.operatorActions) {
|
||||
runConfigurationChecks();
|
||||
|
||||
$scope.fetchAppstoreProfileAndSubscription(function (error) {
|
||||
|
||||
Reference in New Issue
Block a user