CLOUDSTACK-2175: Add private Gateway can aonly be done by root or domain admin but not by normal user

This commit is contained in:
Pranav Saxena 2013-05-02 02:58:27 +05:30
parent 38071e63d2
commit 58648c4b53
1 changed files with 6 additions and 0 deletions

View File

@ -737,6 +737,12 @@
actions:{
add:{
label:'Add Private Gateway',
preFilter: function(args) {
if(isAdmin() || isDomainAdmin() )
return true;
else
return false;
},
createForm:{
title: 'label.add.new.gateway',
desc: 'message.add.new.gateway.to.vpc',