← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10996: change to using authority F_DATAVALUE_ADD to F_PATIENT_DATAVALUE_ADD for pdfformcontroller (progr...

 

------------------------------------------------------------
revno: 10996
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2013-05-25 13:38:01 +0700
message:
  change to using authority F_DATAVALUE_ADD to F_PATIENT_DATAVALUE_ADD for pdfformcontroller (programStage posting)
modified:
  dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/PDFFormController.java


--
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-api/src/main/java/org/hisp/dhis/api/controller/PDFFormController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/PDFFormController.java	2013-05-25 06:27:02 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/PDFFormController.java	2013-05-25 06:38:01 +0000
@@ -202,9 +202,9 @@
     }
 
     @RequestMapping( value = "/programStage", method = RequestMethod.POST )
-    @PreAuthorize("hasRole('ALL') or hasRole('F_DATAVALUE_ADD')")
+    @PreAuthorize("hasRole('ALL') or hasRole('F_PATIENT_DATAVALUE_ADD')")
     public void sendFormPDF_ProgramStage( HttpServletRequest request, HttpServletResponse response )
-        throws IOException, Exception
+        throws Exception
     {
         InputStream in = request.getInputStream();