mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 08:47:42 -05:00
839daa85aa
* 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:
|
||
---|---|---|
.. | ||
admin.go | ||
admin_test.go | ||
auths.go | ||
emails.go | ||
hooks.go | ||
main_test.go | ||
notice.go | ||
orgs.go | ||
repos.go | ||
users.go | ||
users_test.go |