ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1301759 - /ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
Date Fri, 16 Mar 2012 21:03:09 GMT
Author: marrs
Date: Fri Mar 16 21:03:09 2012
New Revision: 1301759

URL: http://svn.apache.org/viewvc?rev=1301759&view=rev
Log:
ACE-63 fixes to some of the user roles to make all columns show up again

Modified:
    ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java

Modified: ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
URL: http://svn.apache.org/viewvc/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java?rev=1301759&r1=1301758&r2=1301759&view=diff
==============================================================================
--- ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
(original)
+++ ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
Fri Mar 16 21:03:09 2012
@@ -243,7 +243,7 @@ public class VaadinClient extends com.va
     private void initGrid(User user) {
         Authorization auth = m_userAdmin.getAuthorization(user);
         int count = 0;
-        for (String role : new String[] { "viewBundle", "viewGroup", "viewLicense", "viewTarget"
}) {
+        for (String role : new String[] { "viewArtifact", "viewFeature", "viewDistribution",
"viewTarget" }) {
             if (auth.hasRole(role)) {
                 count++;
             }
@@ -270,7 +270,7 @@ public class VaadinClient extends com.va
         m_artifactToolbar.addComponent(dynamicCheckBox);
 
         count = 0;
-        if (auth.hasRole("viewBundle")) {
+        if (auth.hasRole("viewArtifact")) {
             m_grid.addComponent(m_artifactsPanel, count, 2);
             m_grid.addComponent(m_artifactToolbar, count, 1);
             count++;
@@ -279,7 +279,7 @@ public class VaadinClient extends com.va
         m_featuresPanel = createFeaturesPanel(m_mainWindow);
         m_featureToolbar = createAddFeatureButton(m_mainWindow);
 
-        if (auth.hasRole("viewGroup")) {
+        if (auth.hasRole("viewFeature")) {
             m_grid.addComponent(m_featuresPanel, count, 2);
             m_grid.addComponent(m_featureToolbar, count, 1);
             count++;
@@ -288,7 +288,7 @@ public class VaadinClient extends com.va
         m_distributionsPanel = createDistributionsPanel(m_mainWindow);
         m_distributionToolbar = createAddDistributionButton(m_mainWindow);
 
-        if (auth.hasRole("viewLicense")) {
+        if (auth.hasRole("viewDistribution")) {
             m_grid.addComponent(m_distributionsPanel, count, 2);
             m_grid.addComponent(m_distributionToolbar, count, 1);
             count++;



Mime
View raw message