1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-05 07:11:22 +00:00
forgejo/modules/context
yp05327 bbf83f5d4b
Improve permission check of packages ()
At first, we have one unified team unit permission which is called
`Team.Authorize` in DB.
But since https://github.com/go-gitea/gitea/pull/17811, we allowed
different units to have different permission.

The old code is only designed for the old version. So after , if
org users have write permission of other units, but have no permission
of packages, they can also get write permission of packages.

Co-authored-by: delvh <dev.lh@web.de>
2023-04-06 22:18:29 +08:00
..
access_log.go Parse external request id from request headers, and print it in access log () 2023-03-10 09:54:32 -06:00
api.go Set X-Gitea-Debug header once () 2023-03-08 15:40:04 -05:00
api_org.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
api_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
auth.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
captcha.go Add new captcha: cloudflare turnstile () 2023-02-05 15:29:03 +08:00
context.go Append (comment) when a link points at a comment rather than the whole issue () 2023-04-03 16:02:57 +08:00
csrf.go Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00
form.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
org.go Add missing tabs to org projects page () 2023-03-10 09:18:20 -06:00
package.go Improve permission check of packages () 2023-04-06 22:18:29 +08:00
pagination.go Make branches list page operations remember current page () 2023-03-14 13:11:38 +08:00
permission.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
private.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repo.go Implement Issue Config () 2023-03-28 14:22:07 -04:00
response.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
utils.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
xsrf.go Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00
xsrf_test.go Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00