1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/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>
2022-10-24 22:23:25 +03:00
..
access_log.go
api_org.go
api_test.go
api.go
auth.go
captcha.go
context.go Share HTML template renderers and create a watcher framework (#20218) 2022-08-28 10:43:25 +01:00
csrf.go
form.go
org.go Add user/organization code search (#19977) 2022-10-11 00:12:03 +01:00
package.go Fix package access for admins and inactive users (#21580) 2022-10-24 22:23:25 +03:00
pagination.go
permission.go
private.go
repo.go Redirect to new repository owner (#21398) 2022-10-11 19:54:44 +08:00
response.go
utils.go
xsrf_test.go
xsrf.go