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: 04b04cf854
Author-Change-Id: IB#1105130
2020-12-21 15:39:41 +01:00
..
admin.go Hide sync ssh keys button on admin dashboard if ssh disabled or builtin-ssh enabled (#13072) 2020-10-08 12:43:15 -04:00
admin_test.go Shadow the password on cache and session config on admin panel (#7300) 2019-06-27 00:12:38 +08:00
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 System-wide webhooks (#10546) 2020-03-09 00:08:05 +02:00
main_test.go Force user to change password (#4489) 2018-09-13 15:04:25 +03:00
notice.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
orgs.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
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