1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-10-05 19:30:58 +00:00
forgejo/tests
Gusted 421cfba3cf fix: return error when user is not repo writer (#8690)
- If the doer isn't a issue/pull writer, return a error.
- Fixes a panic (NPE), because the callers of `prepareForReplaceOrAdd` simply checked if there was a error returned to see if the user was allowed. It didn't check if a statuscode was written. This is specifically a issue when the automatic token by Forgejo actions is used.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8690
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-07-27 10:17:33 +02:00
..
e2e tests(e2e): Silence heading level warning (#8659) 2025-07-25 02:39:16 +02:00
fuzz chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gitea-lfs-meta Test views of LFS files (#22196) 2022-12-23 07:41:56 +08:00
gitea-repositories-meta Implement single-commit PR review flow (#7155) 2025-06-17 09:31:50 +02:00
integration fix: return error when user is not repo writer (#8690) 2025-07-27 10:17:33 +02:00
testdata/data add model viewer for .glb (GLTF) model in file view (#8111) 2025-06-21 14:42:35 +02:00
mysql.ini.tmpl Revert "feat: remove API authentication methods that uses the URL query (#7924)" (#8633) 2025-07-24 17:19:24 +02:00
pgsql.ini.tmpl Revert "feat: remove API authentication methods that uses the URL query (#7924)" (#8633) 2025-07-24 17:19:24 +02:00
sqlite.ini.tmpl Revert "feat: remove API authentication methods that uses the URL query (#7924)" (#8633) 2025-07-24 17:19:24 +02:00
test_utils.go feat: detect incorrect integration test functions (#8352) 2025-06-29 23:09:29 +02:00