Skip to content

Commit af81ae4

Browse files
author
Jessica Wang
committed
bug 11426: domain page - fix the criterion to determine whether it's a Root domain or not.
1 parent 648a1c3 commit af81ae4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/scripts/domains.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@
347347
var jsonObj = args.context.item;
348348
var allowedActions = [];
349349
if(isAdmin()) {
350-
allowedActions.push("create");
351-
if(jsonObj.id != 1) { //"ROOT" domain is not allowed to edit or delete
350+
allowedActions.push("create");
351+
if(jsonObj.level != 0) { //ROOT domain (whose level is 0) is not allowed to edit or delete
352352
allowedActions.push("edit"); //merge updateResourceCount into edit
353353
allowedActions.push("delete");
354354
}

0 commit comments

Comments
 (0)