mirror of
1
Fork 0
forgejo/modules/cron
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
..
cron.go Refactor Cron and merge dashboard tasks (#10745) 2020-05-16 19:31:38 -04:00
setting.go Mirror System Notice reports are too frequent (#12438) 2020-08-05 21:40:36 +01:00
tasks.go Mirror System Notice reports are too frequent (#12438) 2020-08-05 21:40:36 +01:00
tasks_basic.go Added option to disable migrations (#13114) 2020-12-21 15:39:41 +01:00
tasks_extended.go Add ssh certificate support (#12281) 2020-10-10 20:38:09 -04:00