feat: expose if task comments are enabled or not in /info
This commit is contained in:
parent
56efbdc297
commit
ae8db176db
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,7 @@ type vikunjaInfos struct {
|
||||||
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"`
|
UserDeletionEnabled bool `json:"user_deletion_enabled"`
|
||||||
|
TaskCommentsEnabled bool `json:"task_comments_enabled"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type authInfo struct {
|
type authInfo struct {
|
||||||
|
@ -93,6 +94,7 @@ func Info(c echo.Context) error {
|
||||||
CaldavEnabled: config.ServiceEnableCaldav.GetBool(),
|
CaldavEnabled: config.ServiceEnableCaldav.GetBool(),
|
||||||
EmailRemindersEnabled: config.ServiceEnableEmailReminders.GetBool(),
|
EmailRemindersEnabled: config.ServiceEnableEmailReminders.GetBool(),
|
||||||
UserDeletionEnabled: config.ServiceEnableUserDeletion.GetBool(),
|
UserDeletionEnabled: config.ServiceEnableUserDeletion.GetBool(),
|
||||||
|
TaskCommentsEnabled: config.ServiceEnableTaskComments.GetBool(),
|
||||||
AvailableMigrators: []string{
|
AvailableMigrators: []string{
|
||||||
(&vikunja_file.FileMigrator{}).Name(),
|
(&vikunja_file.FileMigrator{}).Name(),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue