public static bool AreAllowableActionsAvailable(this ISession session) {
#region Workaround
// Workaround to detect minimum version of correct responding cmis gw (https://mantis.dataspace.cc/view.php?id=4463)
if (session.RepositoryInfo.ProductName == "GRAU DataSpace CMIS Gateway") {
try {
var version = new Version(session.RepositoryInfo.ProductVersion);
if (version < new Version(1, 5, 1120)) {
return false;
}
} catch (Exception) {
}
}
#endregion
if (session.DefaultContext.IncludeAllowableActions) {
return true;
}
return session.DefaultContext.IncludeAcls && session.RepositoryInfo.Capabilities.AclCapability != CapabilityAcl.None;
}