cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pran...@apache.org
Subject [1/2] git commit: updated refs/heads/master to fd2ae03
Date Wed, 01 May 2013 21:30:38 GMT
Updated Branches:
  refs/heads/master 60a8e881c -> fd2ae034f


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/master
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