dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24245
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11847: bugfix for /api/currentUser/assignedOrgUnits
------------------------------------------------------------
revno: 11847
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-08-30 16:03:13 +0200
message:
bugfix for /api/currentUser/assignedOrgUnits
modified:
dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/user/CurrentUserController.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/user/CurrentUserController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/user/CurrentUserController.java 2013-08-30 10:28:40 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/user/CurrentUserController.java 2013-08-30 14:03:13 +0000
@@ -277,6 +277,7 @@
}
Set<OrganisationUnit> userOrganisationUnits = new HashSet<OrganisationUnit>();
+ userOrganisationUnits.add( currentUser.getOrganisationUnit() );
if ( parameters.containsKey( "includeChildren" ) && Boolean.parseBoolean( parameters.get( "includeChildren" ) ) )
{