1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-30 10:39:44 +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

@ -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