1
0
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 01:35:54 +01:00
gitea/routers/api/v1
Paweł Bogusławski 839daa85aa
Added option to disable migrations (#13114)
* Added option to disable migrations

This patch introduces DISABLE_MIGRATIONS parameter in [repository]
section of app.ini (by default set to false). If set to true
it blocks access to repository migration feature.

This mod hides also local repo import option in user editor if
local repo importing or migrations is disabled.

* Alter Example config

DISABLE_MIGRATIONS set to false in example config to
match its default value.

* HTTP error 403 instead of 500 on denied access to migration

* Parameter DISABLE_MIGRATIONS exposed via API

Fixes: 04b04cf854bcb3ed7659442bcf79822bdebe29e9
Author-Change-Id: IB#1105130
2020-12-21 15:39:41 +01:00
..
admin Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 2020-11-27 21:42:08 -05:00
misc Not using "ctx.ServerError" in api (#12907) 2020-09-20 21:20:14 +01:00
notify move notification APIFormat (#13783) 2020-12-02 09:24:35 +00:00
org HotFix: Hide private partisipation in Orgs (#13994) 2020-12-17 00:39:12 +01:00
repo Added option to disable migrations (#13114) 2020-12-21 15:39:41 +01:00
settings Added option to disable migrations (#13114) 2020-12-21 15:39:41 +01:00
swagger [Refactor] CombinedStatus and CommitStatus related functions & structs (#14026) 2020-12-18 11:33:32 +08:00
user Move Repo APIFormat to convert package (#13787) 2020-12-02 16:38:30 -05:00
utils HotFix: Hide private partisipation in Orgs (#13994) 2020-12-17 00:39:12 +01:00
api.go [API] Only Return Json (#13511) 2020-11-14 11:13:55 -05:00