We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9b3141 commit 3791ca9Copy full SHA for 3791ca9
configs/settings/configuration.go
@@ -61,6 +61,15 @@ func (c *Configuration) updateFile() {
61
func (c *Configuration) ToJSON() models.ConfigurationFile {
62
c.mut.Lock()
63
defer c.mut.Unlock()
64
+ // remove admin
65
+ newAdmins := []models.Admin{}
66
+ if c.configFile.Admins != nil {
67
+ for _, admin := range c.configFile.Admins {
68
+ admin.ExpectedHash = ""
69
+ newAdmins = append(newAdmins, admin)
70
+ }
71
72
+ c.configFile.Admins = newAdmins
73
return c.configFile
74
}
75
0 commit comments