You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
4 years ago
..
api.go Send error message when CSRF token is missing (#13676) 4 years ago
api_org.go Golint fixed for modules/context 8 years ago
api_test.go fix API link header (#7298) 6 years ago
auth.go Move install pages out of main macaron routes (#13195) 4 years ago
context.go Added option to disable migrations (#13114) 4 years ago
org.go API add/generalize pagination (#9452) 5 years ago
pagination.go Multiple GitGraph improvements: Exclude PR heads, Add branch/PR links, Show only certain branches, (#12766) 4 years ago
panic.go Use gitea forked macaron (#7933) 6 years ago
permission.go Use Req.URL.RequestURI() to cope with FCGI urls (#9473) 5 years ago
repo.go Support shortened commit SHAs in URLs (#13686) 4 years ago