mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
PRovide basic in-app purchase/renewal flow
This commit is contained in:
parent
e116d3b000
commit
d1b803b246
39 changed files with 1211 additions and 1154 deletions
|
@ -20,8 +20,7 @@ import (
|
|||
"github.com/jmoiron/sqlx"
|
||||
)
|
||||
|
||||
// RequestContext provides per request scoped values required
|
||||
// by HTTP handlers.
|
||||
// RequestContext provides per request scoped values required for HTTP handlers.
|
||||
type RequestContext struct {
|
||||
AllowAnonymousAccess bool
|
||||
Authenticated bool
|
||||
|
@ -36,14 +35,13 @@ type RequestContext struct {
|
|||
Expires time.Time
|
||||
Fullname string
|
||||
Transaction *sqlx.Tx
|
||||
AppVersion string
|
||||
|
||||
Administrator bool
|
||||
Analytics bool
|
||||
Active bool
|
||||
Editor bool
|
||||
GlobalAdmin bool
|
||||
ViewUsers bool
|
||||
Administrator bool
|
||||
Analytics bool
|
||||
Active bool
|
||||
Editor bool
|
||||
GlobalAdmin bool
|
||||
ViewUsers bool
|
||||
Subscription Subscription
|
||||
}
|
||||
|
||||
//GetAppURL returns full HTTP url for the app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue