0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-13 05:40:12 +01:00
gitea/modules/context
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
..
api_org.go
api_test.go
api.go Send error message when CSRF token is missing (#13676) 2020-11-23 07:56:04 +00:00
auth.go Move install pages out of main macaron routes (#13195) 2020-10-19 17:03:08 -04:00
context.go Added option to disable migrations (#13114) 2020-12-21 15:39:41 +01:00
org.go
pagination.go Multiple GitGraph improvements: Exclude PR heads, Add branch/PR links, Show only certain branches, (#12766) 2020-11-08 12:21:54 -05:00
panic.go
permission.go
repo.go Support shortened commit SHAs in URLs (#13686) 2020-11-25 15:07:39 -05:00