0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 22:39:39 +01:00
gitea/modules/setting
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
..
attachment.go
cache.go
cors.go
cron_test.go
cron.go
database_sqlite.go
database_test.go
database.go When reinitialising DBConfig reset the database use flags (#13796) 2020-12-02 19:39:48 -05:00
git.go
indexer_test.go
indexer.go
lfs.go Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 2020-11-27 21:42:08 -05:00
log.go
mailer.go
markup.go
migrations.go Add Allow-/Block-List for Migrate & Mirrors (#13610) 2020-11-28 19:37:58 -05:00
picture.go
project.go
queue.go
repository.go Added option to disable migrations (#13114) 2020-12-21 15:39:41 +01:00
service.go Manually approve new registration (#13083) 2020-12-19 20:31:06 -05:00
session.go
setting.go Set RUN_MODE prod by default (#13765) 2020-11-30 14:52:04 -05:00
storage.go
task.go
webhook.go