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

View file

@ -42,6 +42,7 @@ type configOptions struct {
EnableGravatar bool
EnableFavourites bool
EnableStarRating bool
EnableUserEditing bool
DefaultTheme string
GATrackingID string
EnableLogRedacting bool
@ -148,6 +149,7 @@ func init() {
viper.SetDefault("enablegravatar", false)
viper.SetDefault("enablefavourites", true)
viper.SetDefault("enablestarrating", true)
viper.SetDefault("enableuserediting", true)
viper.SetDefault("defaulttheme", "Dark")
viper.SetDefault("gatrackingid", "")
viper.SetDefault("enablelogredacting", true)