← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9160: Added authority for my data mart downloads

 

------------------------------------------------------------
revno: 9160
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-12-03 19:00:31 +0100
message:
  Added authority for my data mart downloads
modified:
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/resources/org/hisp/dhis/user/i18n_module.properties
  dhis-2/dhis-web/dhis-web-reporting/src/main/resources/struts.xml


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/resources/org/hisp/dhis/user/i18n_module.properties'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/resources/org/hisp/dhis/user/i18n_module.properties	2012-11-20 15:34:17 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/resources/org/hisp/dhis/user/i18n_module.properties	2012-12-03 18:00:31 +0000
@@ -229,6 +229,7 @@
 F_VIEW_DATABROWSER=View data browser
 F_RUN_VALIDATION=Run validation
 F_PROGRAM_TRACKING_LIST=View program tracking
+F_MYDATAMART_VIEW=Access my data mart
 
 #-- User module ---------------------------------------------------------------#
 

=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/resources/struts.xml	2012-10-31 13:56:02 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/resources/struts.xml	2012-12-03 18:00:31 +0000
@@ -290,6 +290,7 @@
       <result name="client-error" type="httpheader" />
       <param name="requestType">DATAVALUE</param>
       <param name="periodType">Weekly</param>
+      <param name="requiredAuthorities">F_MYDATAMART_VIEW</param>
     </action>
 
     <action name="monthlyDataValues" class="org.hisp.dhis.reporting.exp.ExportDataMartAction">
@@ -297,6 +298,7 @@
       <result name="client-error" type="httpheader" />
       <param name="requestType">DATAVALUE</param>
       <param name="periodType">Monthly</param>
+      <param name="requiredAuthorities">F_MYDATAMART_VIEW</param>
     </action>
 
     <action name="quarterlyDataValues" class="org.hisp.dhis.reporting.exp.ExportDataMartAction">
@@ -304,6 +306,7 @@
       <result name="client-error" type="httpheader" />
       <param name="requestType">DATAVALUE</param>
       <param name="periodType">Quarterly</param>
+      <param name="requiredAuthorities">F_MYDATAMART_VIEW</param>
     </action>
 
     <action name="yearlyDataValues" class="org.hisp.dhis.reporting.exp.ExportDataMartAction">
@@ -311,6 +314,7 @@
       <result name="client-error" type="httpheader" />
       <param name="requestType">DATAVALUE</param>
       <param name="periodType">Yearly</param>
+      <param name="requiredAuthorities">F_MYDATAMART_VIEW</param>
     </action>
 
     <action name="weeklyIndicatorValues" class="org.hisp.dhis.reporting.exp.ExportDataMartAction">
@@ -318,6 +322,7 @@
       <result name="client-error" type="httpheader" />
       <param name="requestType">INDICATORVALUE</param>
       <param name="periodType">Weekly</param>
+      <param name="requiredAuthorities">F_MYDATAMART_VIEW</param>
     </action>
 
     <action name="monthlyIndicatorValues" class="org.hisp.dhis.reporting.exp.ExportDataMartAction">
@@ -325,6 +330,7 @@
       <result name="client-error" type="httpheader" />
       <param name="requestType">INDICATORVALUE</param>
       <param name="periodType">Monthly</param>
+      <param name="requiredAuthorities">F_MYDATAMART_VIEW</param>
     </action>
 
     <action name="quarterlyIndicatorValues" class="org.hisp.dhis.reporting.exp.ExportDataMartAction">
@@ -332,6 +338,7 @@
       <result name="client-error" type="httpheader" />
       <param name="requestType">INDICATORVALUE</param>
       <param name="periodType">Quarterly</param>
+      <param name="requiredAuthorities">F_MYDATAMART_VIEW</param>
     </action>
 
     <action name="yearlyIndicatorValues" class="org.hisp.dhis.reporting.exp.ExportDataMartAction">
@@ -339,6 +346,7 @@
       <result name="client-error" type="httpheader" />
       <param name="requestType">INDICATORVALUE</param>
       <param name="periodType">Yearly</param>
+      <param name="requiredAuthorities">F_MYDATAMART_VIEW</param>
     </action>
 
     <action name="exportMetaData" class="org.hisp.dhis.reporting.exp.MetaDataExportAction">
@@ -348,6 +356,7 @@
         <param name="contentDisposition">filename="${fileName}"</param>
         <param name="bufferSize">10240</param>
       </result>
+      <param name="requiredAuthorities">F_MYDATAMART_VIEW</param>
     </action>
 	
   </package>