You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
4 years ago
..
admin.go Hide sync ssh keys button on admin dashboard if ssh disabled or builtin-ssh enabled (#13072) 4 years ago
admin_test.go Shadow the password on cache and session config on admin panel (#7300) 5 years ago
auths.go Remove PAM from auth dropdown when unavailable (#13276) 4 years ago
emails.go Admin page for managing user e-mail activation (#10557) 4 years ago
hooks.go System-wide webhooks (#10546) 4 years ago
main_test.go Force user to change password (#4489) 6 years ago
notice.go Use gitea forked macaron (#7933) 5 years ago
orgs.go API add/generalize pagination (#9452) 4 years ago
repos.go Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 4 years ago
users.go Added option to disable migrations (#13114) 4 years ago
users_test.go Add email validity check (#13475) 4 years ago