1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +02:00

Export to PDF related improvements

This commit is contained in:
Harvey Kandola 2018-06-11 14:40:21 +01:00
parent 2e9734e73e
commit ad2e653f3c
5 changed files with 701 additions and 690 deletions

View file

@ -25,11 +25,7 @@ import (
type RequestContext struct {
AllowAnonymousAccess bool
Authenticated bool
Administrator bool
Guest bool
Editor bool
Global bool
Analytics bool
UserID string
OrgID string
OrgName string
@ -41,6 +37,13 @@ type RequestContext struct {
Fullname string
Transaction *sqlx.Tx
AppVersion string
Administrator bool
Analytics bool
Active bool
Editor bool
Global bool
ViewUsers bool
}
//GetAppURL returns full HTTP url for the app

View file

@ -18,8 +18,8 @@ import (
)
// GetSecuredUser contain associated accounts but credentials are wiped.
func GetSecuredUser(ctx domain.RequestContext, s domain.Store, orgID, q string) (u user.User, err error) {
u, err = s.User.Get(ctx, q)
func GetSecuredUser(ctx domain.RequestContext, s domain.Store, orgID, id string) (u user.User, err error) {
u, err = s.User.Get(ctx, id)
AttachUserAccounts(ctx, s, orgID, &u)
return