code: 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;
      }
docs: has access checks if config object has access to given type
  
  @param config
  @param type
  @return has access