continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r499738 - /maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp
Date Thu, 25 Jan 2007 11:09:54 GMT
Author: evenisse
Date: Thu Jan 25 03:09:52 2007
New Revision: 499738

URL: http://svn.apache.org/viewvc?view=rev&rev=499738
Log:
[CONTINUUM-1143] Don't allow a project user to build a project
Submitted by Teodoro Cue Jr.

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp?view=diff&rev=499738&r1=499737&r2=499738
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp
Thu Jan 25 03:09:52 2007
@@ -139,13 +139,18 @@
       <ec:column property="from" title="projectView.buildDefinition.from"/>
       <ec:column property="isDefault" title="projectView.buildDefinition.default"/>
       <ec:column property="buildNowAction" title="&nbsp;" width="1%">
-        <ww:url id="buildProjectUrl" action="buildProject" namespace="/" includeParams="none">
-          <ww:param name="projectId">${pageScope.buildDefinitionSummary.projectId}</ww:param>
-          <ww:param name="buildDefinitionId">${pageScope.buildDefinitionSummary.id}</ww:param>
-        </ww:url>
-        <ww:a href="%{buildProjectUrl}">
-          <img src="<c:url value='/images/buildnow.gif'/>" alt="Build Now" title="Build
Now" border="0">
-        </ww:a>
+        <pss:ifAuthorized permission="continuum-build-group" resource="${projectGroupName}">
+          <ww:url id="buildProjectUrl" action="buildProject" namespace="/" includeParams="none">
+            <ww:param name="projectId">${pageScope.buildDefinitionSummary.projectId}</ww:param>
+            <ww:param name="buildDefinitionId">${pageScope.buildDefinitionSummary.id}</ww:param>
+          </ww:url>
+          <ww:a href="%{buildProjectUrl}">
+            <img src="<c:url value='/images/buildnow.gif'/>" alt="<ww:text name='build'/>"
title="<ww:text name='build'/>" border="0">
+          </ww:a>
+        </pss:ifAuthorized>
+        <pss:elseAuthorized>
+          <img src="<ww:url value='/images/buildnow_disabled.gif'/>" alt="<ww:text
name='build'/>" title="<ww:text name='build'/>" border="0" />
+        </pss:elseAuthorized>
       </ec:column>
       <ec:column property="editAction" title="&nbsp;" width="1%">
         <pss:ifAuthorized permission="continuum-modify-group" resource="${projectGroupName}">



Mime
View raw message