diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index f411d1108a0..ac101afc2e4 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -561,7 +561,16 @@ }, success: function(json) { var item = json.listprivategatewaysresponse.privategateway[0]; - args.response.success({ data: item }); + args.response.success({ + data: item, + actionFilter: function(args) { + var allowedActions = []; + if(isAdmin()) { + allowedActions.push("remove"); + } + return allowedActions; + } + }); } }); }