dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #42218
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21573: Apps, performance improvement
------------------------------------------------------------
revno: 21573
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2016-01-04 13:22:42 +0100
message:
Apps, performance improvement
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/appmanager/DefaultAppManager.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-services/dhis-service-core/src/main/java/org/hisp/dhis/appmanager/DefaultAppManager.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/appmanager/DefaultAppManager.java 2016-01-04 02:27:49 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/appmanager/DefaultAppManager.java 2016-01-04 12:22:42 +0000
@@ -136,7 +136,9 @@
@Override
public List<App> getAccessibleApps()
{
- return getApps().stream().filter( this::isAccessible ).collect( Collectors.toList() );
+ User user = currentUserService.getCurrentUser();
+
+ return getApps().stream().filter( a -> this.isAccessible( a, user ) ).collect( Collectors.toList() );
}
@Override