mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
major code repair from old to new API -- WIP
This commit is contained in:
parent
25b576f861
commit
792c3e2ce8
46 changed files with 3403 additions and 171 deletions
5
core/env/product.go
vendored
5
core/env/product.go
vendored
|
@ -58,6 +58,11 @@ func (l *License) Status() string {
|
|||
return fmt.Sprintf("License is %s and %s", lp, lv)
|
||||
}
|
||||
|
||||
// IsValid returns if license is valid
|
||||
func (l *License) IsValid() bool {
|
||||
return l.Valid == true
|
||||
}
|
||||
|
||||
// LicenseData holds encrypted data and is unpacked into License.
|
||||
type LicenseData struct {
|
||||
Key string `json:"key"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue