gitea/routers
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: 04b04cf854
Author-Change-Id: IB#1105130
2020-12-21 15:39:41 +01:00
..
admin Added option to disable migrations (#13114) 2020-12-21 15:39:41 +01:00
api/v1 Added option to disable migrations (#13114) 2020-12-21 15:39:41 +01:00
dev Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
events Add EventSource support (#11235) 2020-05-07 22:49:00 +01:00
org Add markdown support in organization description (#13549) 2020-11-15 16:28:08 +00:00
private Use native git variants by default with go-git variants as build tag (#13673) 2020-12-17 22:00:47 +08:00
repo Added option to disable migrations (#13114) 2020-12-21 15:39:41 +01:00
routes Fix missing stylesheets on installation page (#13736) 2020-11-28 19:52:30 +02:00
user Show dropdown with all statuses for commit (#13977) 2020-12-20 11:13:12 +08:00
utils Return the full rejection message and errors in flash errors (#13221) 2020-10-20 19:50:10 -04:00
home.go Simplify CheckUnitUser logic (#12854) 2020-09-15 19:49:34 -04:00
init.go Move webhook type from int to string (#13664) 2020-12-08 11:41:14 +01:00
install.go Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 2020-11-27 21:42:08 -05:00
metrics.go Move metrics from macaron to chi (#13601) 2020-11-17 15:50:06 -05:00
swagger_json.go Add gitea-vet (#10948) 2020-04-05 07:20:50 +01:00