You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pr...@apache.org on 2012/08/16 13:27:01 UTC

git commit: CS-15962:InterVlan-Router details tabs to be visible only for admin and hidden for regular accounts

Updated Branches:
  refs/heads/master 2f1c83555 -> 938498c7f


CS-15962:InterVlan-Router details tabs to be visible only for admin and hidden for regular accounts


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

Branch: refs/heads/master
Commit: 938498c7fe8c89848647135025f093609d606661
Parents: 2f1c835
Author: Pranav Saxena <pr...@citrix.com>
Authored: Thu Aug 16 16:56:15 2012 +0530
Committer: Pranav Saxena <pr...@citrix.com>
Committed: Thu Aug 16 16:56:15 2012 +0530

----------------------------------------------------------------------
 ui/scripts/network.js |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/938498c7/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 5206225..7899794 100644
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -3823,7 +3823,16 @@
                   poll: pollAsyncJobResult
                 }
               }
-            },						
+            },
+
+            tabFilter:function(args) {
+                var hiddenTabs=[];
+                var isRouterOwner = isAdmin() ;
+                if(!isRouterOwner)
+                  hiddenTabs.push("router");
+               return hiddenTabs;
+            },
+						
             tabs: {
               details: {
                 title: 'label.details',