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:
parent
2e9734e73e
commit
ad2e653f3c
5 changed files with 701 additions and 690 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue