mirror of
https://github.com/documize/community.git
synced 2025-07-22 14:49:42 +02:00
implemented edition license checks
This commit is contained in:
parent
edccb39019
commit
a4e3264e0c
19 changed files with 146 additions and 19 deletions
|
@ -41,6 +41,11 @@ func writeTransactionError(w http.ResponseWriter, method string, err error) {
|
|||
log.Error(fmt.Sprintf("Unable to get database transaction for method %s", method), err)
|
||||
}
|
||||
|
||||
// IsInvalidLicense returns true if license is invalid
|
||||
func IsInvalidLicense() bool {
|
||||
return Product.License.Valid == false
|
||||
}
|
||||
|
||||
/*
|
||||
func WriteAddRecordError(w http.ResponseWriter, method string, err error) {
|
||||
w.Header().Set("Content-Type", "application/json; charset=utf-8")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue