Skip to content

Commit d991e37

Browse files
author
Jessica Wang
committed
CLOUDSTACK-6858: UI - remove obsolete variable rootAccountId whose value is no longer 1.
1 parent c29ed73 commit d991e37

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

ui/scripts/sharedFunctions.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ var pageSize = 20;
5151

5252
var drModuleIncluded = false;
5353

54-
var rootAccountId = 1;
55-
5654
//async action
5755
var pollAsyncJobResult = function(args) {
5856
$.ajax({
@@ -1183,10 +1181,7 @@ var addExtraPropertiesToGuestNetworkObject = function(jsonObj) {
11831181
jsonObj.networkofferingidText = jsonObj.networkofferingid;
11841182

11851183
if (jsonObj.acltype == "Domain") {
1186-
if (jsonObj.domainid == rootAccountId)
1187-
jsonObj.scope = "All";
1188-
else
1189-
jsonObj.scope = "Domain (" + jsonObj.domain + ")";
1184+
jsonObj.scope = "Domain (" + jsonObj.domain + ")";
11901185
} else if (jsonObj.acltype == "Account") {
11911186
if (jsonObj.project != null)
11921187
jsonObj.scope = "Account (" + jsonObj.domain + ", " + jsonObj.project + ")";

0 commit comments

Comments
 (0)