Fix action filters on domain details

This commit is contained in:
Brian Federle 2011-11-16 14:35:12 -08:00
parent 7a8a260073
commit 7832509e78
1 changed files with 3 additions and 2 deletions

View File

@ -285,7 +285,8 @@
});
args.response.success({
data: domainObj
data: domainObj,
actionFilter: domainActionfilter
});
}
}
@ -330,7 +331,7 @@
var jsonObj = args.context.item;
var allowedActions = [];
if(isAdmin()) {
allowedActions.push("add");
allowedActions.push("create");
if(jsonObj.id != 1) { //"ROOT" domain is not allowed to edit or delete
allowedActions.push("edit"); //merge updateResourceCount into edit
allowedActions.push("delete");