=== modified file 'dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/action/MenuAction.java' --- dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/action/MenuAction.java 2012-09-19 07:48:54 +0000 +++ dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/action/MenuAction.java 2012-09-19 09:01:12 +0000 @@ -153,18 +153,11 @@ return complete; } - public boolean trackingAuthority; - - public boolean isTrackingAuthority() - { - return trackingAuthority; - } - - public boolean aggregateAuthority; - - public boolean isAggregateAuthority() - { - return aggregateAuthority; + private User user; + + public User getUser() + { + return user; } // ------------------------------------------------------------------------- @@ -174,32 +167,7 @@ @Override public String execute() { - User user = currentUserService.getCurrentUser(); - - trackingAuthority = false; - - aggregateAuthority = false; - - for (String each: user.getUserCredentials().getAllAuthorities()) - { - if ( each.equals( "ALL" )) - { - trackingAuthority = true; - - aggregateAuthority = true; - } - else - { - if ( each.equals( "M_dhis-web-maintenance-patient" ) ) - { - trackingAuthority = true; - } - if ( each.equals( "M_dhis-web-dataentry" )) - { - aggregateAuthority = true; - } - } - } + this.user = currentUserService.getCurrentUser(); if ( complete ) { === modified file 'dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/menu.vm' --- dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/menu.vm 2012-09-14 08:40:13 +0000 +++ dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/menu.vm 2012-09-19 09:01:12 +0000 @@ -20,12 +20,23 @@