Expose user deletion setting in config
This commit is contained in:
parent
179db15180
commit
6b02671dbd
|
@ -48,6 +48,7 @@ type vikunjaInfos struct {
|
||||||
CaldavEnabled bool `json:"caldav_enabled"`
|
CaldavEnabled bool `json:"caldav_enabled"`
|
||||||
AuthInfo authInfo `json:"auth"`
|
AuthInfo authInfo `json:"auth"`
|
||||||
EmailRemindersEnabled bool `json:"email_reminders_enabled"`
|
EmailRemindersEnabled bool `json:"email_reminders_enabled"`
|
||||||
|
UserDeletionEnabled bool `json:"user_deletion_enabled"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type authInfo struct {
|
type authInfo struct {
|
||||||
|
@ -89,6 +90,7 @@ func Info(c echo.Context) error {
|
||||||
TotpEnabled: config.ServiceEnableTotp.GetBool(),
|
TotpEnabled: config.ServiceEnableTotp.GetBool(),
|
||||||
CaldavEnabled: config.ServiceEnableCaldav.GetBool(),
|
CaldavEnabled: config.ServiceEnableCaldav.GetBool(),
|
||||||
EmailRemindersEnabled: config.ServiceEnableEmailReminders.GetBool(),
|
EmailRemindersEnabled: config.ServiceEnableEmailReminders.GetBool(),
|
||||||
|
UserDeletionEnabled: config.ServiceEnableUserDeletion.GetBool(),
|
||||||
Legal: legalInfo{
|
Legal: legalInfo{
|
||||||
ImprintURL: config.LegalImprintURL.GetString(),
|
ImprintURL: config.LegalImprintURL.GetString(),
|
||||||
PrivacyPolicyURL: config.LegalPrivacyURL.GetString(),
|
PrivacyPolicyURL: config.LegalPrivacyURL.GetString(),
|
||||||
|
|
Loading…
Reference in New Issue