You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,14 @@
2
2
3
3
All notable changes to this project will be documented in this file. Take a look at [the migration guide](docs/Migration%20Guide.md) to upgrade between two major versions.
4
4
5
-
<!-- ## [Unreleased] -->
5
+
## [Unreleased]
6
+
7
+
### Changed
8
+
9
+
#### LCP
10
+
11
+
* The LCP License Document is now accessible via `publication.lcpLicense?.license`, even if the license validation fails with a status error. This is useful for checking the end date of an expired license, for example.
Copy file name to clipboardExpand all lines: Sources/LCP/Services/LicensesService.swift
-5Lines changed: 0 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -102,11 +102,6 @@ final class LicensesService: Loggable {
102
102
throwLCPError.missingPassphrase
103
103
}
104
104
105
-
// Check the license status error if there's any
106
-
// Note: Right now we don't want to return a License if it fails the Status check, that's why we attempt to get the DRM context. But it could change if we want to access, for example, the License metadata or perform an LSD interaction, but without being able to decrypt the book. In which case, we could remove this line.
107
-
// Note2: The License already gets in this state when we perform a `return` successfully. We can't decrypt anymore but we still have access to the License Documents and LSD interactions.
0 commit comments