This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/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.go Send error message when CSRF token is missing (#13676) 2020-11-23 07:56:04 +00:00
api_org.go Golint fixed for modules/context 2016-11-25 14:53:59 +08:00
api_test.go fix API link header (#7298) 2019-06-26 16:51:32 +08: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 API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
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 Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
permission.go Use Req.URL.RequestURI() to cope with FCGI urls (#9473) 2019-12-24 00:11:12 +00:00
repo.go Support shortened commit SHAs in URLs (#13686) 2020-11-25 15:07:39 -05:00