You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/context
KN4CK3R 7c11a73833
Fix package access for admins and inactive users (#21580)
I noticed an admin is not allowed to upload packages for other users
because `ctx.IsSigned` was not set.
I added a check for `user.IsActive` and `user.ProhibitLogin` too because
both was not checked. Tests enforce this now.

Co-authored-by: Lauris BH <lauris@nix.lv>
2 years ago
..
access_log.go Pass down SignedUserName down to AccessLogger context (#16605) 3 years ago
api.go Add Cache-Control header to html and api responses, add no-transform (#20432) 2 years ago
api_org.go Move organization related structs into sub package (#18518) 2 years ago
api_test.go format with gofumpt (#18184) 2 years ago
auth.go Respond with a 401 on git push when password isn't changed yet (#20026) 2 years ago
captcha.go format with gofumpt (#18184) 2 years ago
context.go Share HTML template renderers and create a watcher framework (#20218) 2 years ago
csrf.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago
form.go Add config options to hide issue events (#17414) 2 years ago
org.go Add user/organization code search (#19977) 2 years ago
package.go Fix package access for admins and inactive users (#21580) 2 years ago
pagination.go Remove tab/TabName usage where it's not needed (#19973) 2 years ago
permission.go Move access and repo permission to models/perm/access (#19350) 2 years ago
private.go Add more linters to improve code readability (#19989) 2 years ago
repo.go Redirect to new repository owner (#21398) 2 years ago
response.go format with gofumpt (#18184) 2 years ago
utils.go Add more linters to improve code readability (#19989) 2 years ago
xsrf.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago
xsrf_test.go Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 2 years ago