forgejo/routers/web
Gergely Nagy a5d2829a10
[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)
2024-01-15 16:48:44 +00:00
..
admin Forbid removing the last admin user (#28337) 2024-01-15 06:51:43 +00:00
auth [GITEA] Allow changing the email address before activation 2024-01-15 16:47:16 +00:00
devtest
events
explore
feed [GITEA] Add repo empty check for branch feed 2024-01-15 16:11:58 +00:00
healthcheck
misc [API] Forgejo API /api/forgejo/v1 2024-01-15 14:48:03 +00:00
org Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
repo [GITEA] Optionally allow anyone to edit Wikis 2024-01-15 16:48:44 +00:00
shared Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
user [GITEA] Fix NPE in UsernameSubRoute 2024-01-15 16:47:17 +00:00
base.go
githttp.go Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go [GITEA] allow viewing the latest Action Run on the web 2024-01-15 16:47:16 +00:00
webfinger.go