dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24912
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12256: default to require ALL/F_PATIENT_DATAVALUE_ADD for reading event data for now
------------------------------------------------------------
revno: 12256
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-09-26 15:26:16 +0200
message:
default to require ALL/F_PATIENT_DATAVALUE_ADD for reading event data for now
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/event/EventController.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/event/EventController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/event/EventController.java 2013-09-26 13:17:01 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/event/EventController.java 2013-09-26 13:26:16 +0000
@@ -99,7 +99,7 @@
// -------------------------------------------------------------------------
@RequestMapping( value = "", method = RequestMethod.GET )
- @PreAuthorize( "hasRole('ALL') or hasRole('F_METADATA_EXPORT')" )
+ @PreAuthorize( "hasRole('ALL') or hasRole('F_PATIENT_DATAVALUE_ADD')" )
public String getEvents(
@RequestParam(value = "program", required = false) String programUid,
@RequestParam(value = "programStage", required = false) String programStageUid,
@@ -167,6 +167,7 @@
}
@RequestMapping(value = "/{uid}", method = RequestMethod.GET)
+ @PreAuthorize( "hasRole('ALL') or hasRole('F_PATIENT_DATAVALUE_ADD')" )
public String getEvent( @PathVariable("uid") String uid, @RequestParam Map<String, String> parameters,
Model model, HttpServletRequest request, HttpServletResponse response ) throws Exception
{