1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

License key workflow improved

Co-Authored-By: Saul S <sauls8t@users.noreply.github.com>
This commit is contained in:
McMatts 2018-06-15 14:26:02 +01:00
parent 27fde0dac8
commit 30856433f8
6 changed files with 14 additions and 25 deletions

View file

@ -200,15 +200,16 @@ func (h *Handler) SetLicense(w http.ResponseWriter, r *http.Request) {
h.Store.Setting.Set("EDITION-LICENSE", js)
ctx.Transaction, err = h.Runtime.Db.Beginx()
if err != nil {
response.WriteServerError(w, method, err)
return
}
/* ctx.Transaction, err = h.Runtime.Db.Beginx()*/
//if err != nil {
//response.WriteServerError(w, method, err)
//return
//}
ctx.Transaction.Commit()
/*ctx.Transaction.Commit()*/
h.Runtime.Log.Info("License changed")
event.Handler().Publish(string(event.TypeSystemLicenseChange))
h.Store.Audit.Record(ctx, audit.EventTypeSystemLicense)