diff options
author | 6543 <6543@obermui.de> | 2021-02-20 11:17:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-20 11:17:51 +0100 |
commit | 190bd0accd3788c91605bd7092a46a3c778a21fd (patch) | |
tree | 87a20029408dd60416aac5f1375cef9f87951c04 /routers/api/v1 | |
parent | db07aedd32d777b1f422f0bb810c73ecc6e44336 (diff) | |
download | gitea-190bd0accd3788c91605bd7092a46a3c778a21fd.tar.gz gitea-190bd0accd3788c91605bd7092a46a3c778a21fd.zip |
Export LFS & TimeTracking function status (#14753)
Diffstat (limited to 'routers/api/v1')
-rw-r--r-- | routers/api/v1/settings/settings.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/routers/api/v1/settings/settings.go b/routers/api/v1/settings/settings.go index 6095988404..cfb059a3ac 100644 --- a/routers/api/v1/settings/settings.go +++ b/routers/api/v1/settings/settings.go @@ -57,9 +57,11 @@ func GetGeneralRepoSettings(ctx *context.APIContext) { // "200": // "$ref": "#/responses/GeneralRepoSettings" ctx.JSON(http.StatusOK, api.GeneralRepoSettings{ - MirrorsDisabled: setting.Repository.DisableMirrors, - HTTPGitDisabled: setting.Repository.DisableHTTPGit, - MigrationsDisabled: setting.Repository.DisableMigrations, + MirrorsDisabled: setting.Repository.DisableMirrors, + HTTPGitDisabled: setting.Repository.DisableHTTPGit, + MigrationsDisabled: setting.Repository.DisableMigrations, + TimeTrackingDisabled: !setting.Service.EnableTimetracking, + LFSDisabled: !setting.LFS.StartServer, }) } |