public static boolean hasAccess ( Config config , int type ) { boolean has = true ; if ( config instanceof ConfigWeb ) { has = ( ( ConfigWeb ) config ) . getSecurityManager ( ) . getAccess ( type ) != SecurityManager . VALUE_NO ; } return has ; }
has access checks if config object has access to given type