forgejo/templates/repo/settings
Gergely Nagy e3463bda47
[GITEA] Optionally allow anyone to edit Wikis
This is largely based on gitea#6312 by @ashimokawa, with updates and
fixes by myself, and incorporates the review feedback given in that pull
request, and more.

What this patch does is add a new "default_permissions" column to the
`repo_units` table (defaulting to read permission), adjusts the
permission checking code to take this into consideration, and then
exposes a setting that lets a repo administrator enable any user on a
Forgejo instance to edit the repo's wiki (effectively giving the wiki
unit of the repo "write" permissions by default).

By default, wikis will remain restricted to collaborators, but with the
new setting exposed, they can be turned into globally editable wikis.

Fixes Codeberg/Community#28.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit 4b74439922)
(cherry picked from commit 337cf62c10)
(cherry picked from commit b6786fdb32)
(cherry picked from commit a5d2829a10)

[GITEA] Optionally allow anyone to edit Wikis (squash) AddTokenAuth

(cherry picked from commit fed50cf72e)
(cherry picked from commit 42c55e494e)
2024-01-28 10:54:59 +01:00
..
webhook Fix more "locale" usages (#27259) 2023-09-25 20:42:40 +08:00
actions.tmpl Support configuration variables on Gitea Actions (#24724) 2023-06-20 22:54:15 +00:00
branches.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
collaboration.tmpl Fix more "locale" usages (#27259) 2023-09-25 20:42:40 +08:00
deploy_keys.tmpl Fix more "locale" usages (#27259) 2023-09-25 20:42:40 +08:00
githook_edit.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
githooks.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_head.tmpl Use flex-container for repo and org settings (#27418) 2023-10-04 08:47:54 +02:00
lfs.tmpl Fix more "locale" usages (#27259) 2023-09-25 20:42:40 +08:00
lfs_file.tmpl Fix button size in "attached header right" (#28770) 2024-01-12 14:43:40 +00:00
lfs_file_find.tmpl Fix more "locale" usages (#27259) 2023-09-25 20:42:40 +08:00
lfs_locks.tmpl Fix more "locale" usages (#27259) 2023-09-25 20:42:40 +08:00
lfs_pointers.tmpl Fix button size in "attached header right" (#28770) 2024-01-12 14:43:40 +00:00
nav.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
navbar.tmpl Hide code related setting options in repository when code unit is disabled (#28631) 2024-01-10 11:55:59 +00:00
options.tmpl [GITEA] Optionally allow anyone to edit Wikis 2024-01-28 10:54:59 +01:00
protected_branch.tmpl Add branch protection setting for ignoring stale approvals (#28498) 2024-01-15 07:20:01 +00:00
push_mirror_sync_modal.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
runner_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
secrets.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
tags.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00