mirror of https://github.com/go-gitea/gitea
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>pull/21551/head^2
parent
49a4464160
commit
7c11a73833
Loading…
Reference in new issue