continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From batkin...@apache.org
Subject svn commit: r1677504 - /continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java
Date Mon, 04 May 2015 01:42:25 GMT
Author: batkinson
Date: Mon May  4 01:42:24 2015
New Revision: 1677504

URL: http://svn.apache.org/r1677504
Log:
Preventing users without group permissions from running build reports.

Modified:
    continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java

Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java?rev=1677504&r1=1677503&r2=1677504&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java
(original)
+++ continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/ViewBuildsReportAction.java
Mon May  4 01:42:24 2015
@@ -151,6 +151,11 @@ public class ViewBuildsReportAction
             return REQUIRES_AUTHORIZATION;
         }
 
+        if (permittedGroups.isEmpty()) {
+            addActionError( "You are not authorized to view any project groups." );
+            return REQUIRES_AUTHORIZATION;
+        }
+
         // action class was called from the Menu; do not generate report first
         return SUCCESS;
     }
@@ -167,6 +172,11 @@ public class ViewBuildsReportAction
             return REQUIRES_AUTHORIZATION;
         }
 
+        if (permittedGroups.isEmpty()) {
+            addActionError( "You are not authorized to view any project groups." );
+            return REQUIRES_AUTHORIZATION;
+        }
+
         Date fromDate;
         Date toDate;
 
@@ -251,6 +261,11 @@ public class ViewBuildsReportAction
             return REQUIRES_AUTHORIZATION;
         }
 
+        if (permittedGroups.isEmpty()) {
+            addActionError( "You are not authorized to view any project groups." );
+            return REQUIRES_AUTHORIZATION;
+        }
+
         Date fromDate;
         Date toDate;
 



Mime
View raw message