try {
// this is an extra check to ensure that the webDav authentication scheme is accessible to allow web folders.
AuthenticationScheme authenticationSchemeSequence = SystemDatabaseFactory.getInstance().getAuthenticationSchemeSequence("WebDAV", sessionInfo.getRealm().getRealmID());
boolean principalAllowed = PolicyDatabaseFactory.getInstance().isPrincipalAllowed(sessionInfo.getUser(), authenticationSchemeSequence, true);
if (principalAllowed){
BrowserChecker checker = new BrowserChecker(request.getHeader("user-agent"));
if (item.getResource().getResourceType().equals(
NetworkPlacePlugin.NETWORK_PLACE_RESOURCE_TYPE)
&& CoreUtil
.isAuthenticationModuleInUse(WebDAVAuthenticationModule.MODULE_NAME)
&& ( checker.isBrowserVersionExpression(BrowserChecker.BROWSER_IE, "+=5") ||
( Property.getPropertyBoolean(
new SystemConfigKey("ui.allowOpenWebFolderInFirefox")) && checker.isBrowserVersion(BrowserChecker.BROWSER_FIREFOX, -1) ) ) ) {
return true;
}
}
} catch (Exception e) {
}