code: public boolean isAllowed(File path, boolean write, boolean configReadOnly) throws IOException {
  		try {
  			if (configReadOnly && write) return false;
  			if (config.isRestrictedBrowsing()) {
  				if (null != config.getRestrictedPaths() && null != path) {
  					for (String restricedPath : config.getRestrictedPaths()) {
  						if(path.getCanonicalPath().startsWith(restricedPath)) {
  							return config.isRestrictedBrowsingIsWhitelist();
  						}
  					}
  				}
  				return !config.isRestrictedBrowsingIsWhitelist();
  			}
  		} catch (IOException e) {
  			throw new IOException("Could not check if path '" + path.getAbsolutePath() + "' is allowed ", e);
  		}
  		return true;
  	}
docs: checks file against configured path restrictions and read-write configuration<br>
  doesn't check file permissions
  
  @param path the file to show/manipulate
  @param write if current action want to change the file
  @param configReadOnly if configuration value read-only is true
  @return true if accessible
  @throws IOException