forgejo/routers/admin
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
2020-12-21 15:39:41 +01:00
..
admin.go
admin_test.go
auths.go Remove PAM from auth dropdown when unavailable (#13276) 2020-10-23 11:10:29 +01:00
emails.go Admin page for managing user e-mail activation (#10557) 2020-03-02 15:25:36 -03:00
hooks.go
main_test.go
notice.go
orgs.go
repos.go Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 2020-11-27 21:42:08 -05:00
users.go Added option to disable migrations (#13114) 2020-12-21 15:39:41 +01:00
users_test.go Add email validity check (#13475) 2020-11-14 11:53:43 -05:00