=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/organisationUnit.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/organisationUnit.vm 2011-03-18 14:24:55 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/organisationUnit.vm 2011-03-19 19:30:05 +0000 @@ -35,11 +35,9 @@ $encoder.htmlEncode( $organisationUnit.name ) $i18n.getString( 'edit' ) - #if( $organisationUnit.children.size() == 0 ) + #if( $organisationUnit.children.size() == 0 && $auth.hasAccess( "dhis-web-maintenance-organisationunit", "removeOrganisationUnit" ) ) $i18n.getString( 'remove' ) - #else - $i18n.getString( 'remove' ) - #end + #else $i18n.getString( 'remove' ) #end $i18n.getString( 'show_details' ) === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/organisationUnitGroup.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/organisationUnitGroup.vm 2011-03-18 14:24:55 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/organisationUnitGroup.vm 2011-03-19 19:30:05 +0000 @@ -32,7 +32,9 @@ $encoder.htmlEncode( $organisationUnitGroup.name ) $i18n.getString( 'edit' ) + #if( $auth.hasAccess( "dhis-web-maintenance-organisationunit", "removeOrganisationUnitGroup" ) ) $i18n.getString( 'remove' ) + #else $i18n.getString( 'remove' ) #end $i18n.getString( 'show_details' ) === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/organisationUnitGroupSet.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/organisationUnitGroupSet.vm 2011-03-18 14:24:55 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/organisationUnitGroupSet.vm 2011-03-19 19:30:05 +0000 @@ -35,7 +35,9 @@ $encoder.htmlEncode( $organisationUnitGroupSet.name ) $i18n.getString( 'edit' ) + #if( $auth.hasAccess( "dhis-web-maintenance-organisationunit", "removeOrganisationUnitGroupSet" ) ) $i18n.getString( 'remove' ) + #else $i18n.getString( 'remove' ) #end $i18n.getString( 'show_details' )