Add EnableUserEditing, to control whether a regular user can change their own details (default true)

This commit is contained in:
Deluan
2021-05-02 17:10:56 -04:00
parent 2ff1c79b64
commit 7feda4bea4
6 changed files with 22 additions and 0 deletions
+1
View File
@@ -48,6 +48,7 @@ func serveIndex(ds model.DataStore, fs fs.FS) http.HandlerFunc {
"losslessFormats": strings.ToUpper(strings.Join(consts.LosslessFormats, ",")),
"devActivityPanel": conf.Server.DevActivityPanel,
"devFastAccessCoverArt": conf.Server.DevFastAccessCoverArt,
"enableUserEditing": conf.Server.EnableUserEditing,
}
j, err := json.Marshal(appConfig)
if err != nil {