mirror of
https://github.com/documize/community.git
synced 2025-07-25 16:19:46 +02:00
use ConfigHandle() for userconfig.area
This commit is contained in:
parent
61e66e5203
commit
54770780e4
1 changed files with 4 additions and 2 deletions
|
@ -209,7 +209,8 @@ func (c *Context) SaveSecrets(JSONobj string) error {
|
||||||
if !c.inCommand {
|
if !c.inCommand {
|
||||||
return errors.New("SaveSecrets() may only be called from within Command()")
|
return errors.New("SaveSecrets() may only be called from within Command()")
|
||||||
}
|
}
|
||||||
return request.UserConfigSetJSON(c.OrgID, c.UserID, c.prov.Meta().ContentType, JSONobj)
|
m := c.prov.Meta()
|
||||||
|
return request.UserConfigSetJSON(c.OrgID, c.UserID, m.ConfigHandle(), JSONobj)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetSecrets for the current context user/org.
|
// GetSecrets for the current context user/org.
|
||||||
|
@ -218,7 +219,8 @@ func (c *Context) SaveSecrets(JSONobj string) error {
|
||||||
// An empty JSONpath returns the whole JSON object, as JSON.
|
// An empty JSONpath returns the whole JSON object, as JSON.
|
||||||
// Errors return the empty string.
|
// Errors return the empty string.
|
||||||
func (c *Context) GetSecrets(JSONpath string) string {
|
func (c *Context) GetSecrets(JSONpath string) string {
|
||||||
return request.UserConfigGetJSON(c.OrgID, c.UserID, c.prov.Meta().ContentType, JSONpath)
|
m := c.prov.Meta()
|
||||||
|
return request.UserConfigGetJSON(c.OrgID, c.UserID, m.ConfigHandle(), JSONpath)
|
||||||
}
|
}
|
||||||
|
|
||||||
// sort sections in order that that should be presented.
|
// sort sections in order that that should be presented.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue