0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-27 18:04:04 -05:00
forgejo/routers/web
Lunny Xiao 767e9634d3
Allow options to disable user deletion from the interface on app.ini (#29275)
Extract from #20549

This PR added a new option on app.ini `[admin]USER_DISABLED_FEATURES` to
allow the site administrator to disable users visiting deletion user
interface or allow.
This options are also potentially allowed to define more features in
future PRs.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 3ef6252e06a1f3981f8b7d1717bfc581418b1dc5)

Conflicts:
	custom/conf/app.example.ini
	docs/content/administration/config-cheat-sheet.en-us.md
	modules/setting/admin.go
	context
2024-02-26 22:30:26 +01:00
..
admin Start to migrate from util.OptionalBool to optional.Option[bool] (#29329) 2024-02-26 22:30:26 +01:00
auth Start to migrate from util.OptionalBool to optional.Option[bool] (#29329) 2024-02-26 22:30:26 +01:00
devtest
events
explore Allow to set explore page default sort (#27951) 2023-11-09 10:11:45 +00:00
feed Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
healthcheck [BRANDING] cosmetic s/Gitea/Forgejo/ in logs, messages, etc. 2024-02-05 16:02:14 +01:00
misc [API] Forgejo API /api/forgejo/v1 2024-02-05 14:44:32 +01:00
org Unify organizations header (#29248) 2024-02-26 22:30:26 +01:00
repo Start to migrate from util.OptionalBool to optional.Option[bool] (#29329) 2024-02-26 22:30:26 +01:00
shared Unify organizations header (#29248) 2024-02-26 22:30:26 +01:00
user Allow options to disable user deletion from the interface on app.ini (#29275) 2024-02-26 22:30:26 +01:00
base.go
githttp.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go Refactor more code in templates (#29236) 2024-02-19 22:58:32 +01:00
web.go Refactor routers/web/repo.Action 2024-02-26 08:29:13 +01:00
webfinger.go