cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kis...@apache.org
Subject [03/50] [abbrv] git commit: updated refs/heads/network_acl to 1609d01
Date Fri, 03 May 2013 13:14:45 GMT
CLOUDSTACK-2175: Add private Gateway can aonly be done by root or domain admin but not by normal
user


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/58648c4b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/58648c4b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/58648c4b

Branch: refs/heads/network_acl
Commit: 58648c4b5354107ca43b768875938d352ac72558
Parents: 38071e6
Author: Pranav Saxena <pranav.saxena@citrix.com>
Authored: Thu May 2 02:58:27 2013 +0530
Committer: Pranav Saxena <pranav.saxena@citrix.com>
Committed: Thu May 2 02:58:27 2013 +0530

----------------------------------------------------------------------
 ui/scripts/vpc.js |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/58648c4b/ui/scripts/vpc.js
----------------------------------------------------------------------
diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js
index a4834f2..db964e6 100644
--- a/ui/scripts/vpc.js
+++ b/ui/scripts/vpc.js
@@ -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',


Mime
View raw message