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.
forgejo/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: 04b04cf854bcb3ed7659442bcf79822bdebe29e9
Author-Change-Id: IB#1105130
4 years ago
..
admin Added option to disable migrations (#13114) 4 years ago
api/v1 Added option to disable migrations (#13114) 4 years ago
dev Display ui time with customize time location (#7792) 5 years ago
events Add EventSource support (#11235) 4 years ago
org Add markdown support in organization description (#13549) 4 years ago
private Use native git variants by default with go-git variants as build tag (#13673) 4 years ago
repo Added option to disable migrations (#13114) 4 years ago
routes Fix missing stylesheets on installation page (#13736) 4 years ago
user Show dropdown with all statuses for commit (#13977) 4 years ago
utils Return the full rejection message and errors in flash errors (#13221) 4 years ago
home.go Simplify CheckUnitUser logic (#12854) 4 years ago
init.go Move webhook type from int to string (#13664) 4 years ago
install.go Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 4 years ago
metrics.go Move metrics from macaron to chi (#13601) 4 years ago
swagger_json.go Add gitea-vet (#10948) 4 years ago