|
|
|
@ -536,7 +536,8 @@ public class PlanosDataProvider extends GenericDataProvider
|
|
|
|
Expression result = new Field( "fase" ).isEqual( new Integer( 6 ) );
|
|
|
|
Expression result = new Field( "fase" ).isEqual( new Integer( 6 ) );
|
|
|
|
int userType = u.getTipo().intValue();
|
|
|
|
int userType = u.getTipo().intValue();
|
|
|
|
if ( userType != Global.DIRECTOR_SIPRP && userType != Global.TECNICO_HS
|
|
|
|
if ( userType != Global.DIRECTOR_SIPRP && userType != Global.TECNICO_HS
|
|
|
|
&& userType != Global.DIRECTOR_NACIONAL_SEGURANCA && userType != Global.DIRECTOR_GERAL_RH )
|
|
|
|
&& userType != Global.DIRECTOR_NACIONAL_SEGURANCA && userType != Global.DIRECTOR_GERAL_RH
|
|
|
|
|
|
|
|
&& userType != Global.GESTOR )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
result = result.and( new Field( "estabelecimento_id" ).isEqual( u.getEstabelecimento_id() ) );
|
|
|
|
result = result.and( new Field( "estabelecimento_id" ).isEqual( u.getEstabelecimento_id() ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|