diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index d21ddce55f6..35a753f3f24 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -433,7 +433,13 @@ }, actions: { add: { - label: 'Add new gateway', + label: 'Add new gateway', + preFilter: function(args) { + if(isAdmin()) + return true; + else + return false; + }, createForm: { title: 'Add new gateway', desc: 'Please specify the information to add a new gateway to this VPC.',