0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 19:18:52 +01:00
gitea/routers/api/packages
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
..
composer
conan
container
generic
helm
helper
maven
npm Allow for resolution of NPM registry paths that match upstream (#21568) 2022-10-24 21:50:22 +08:00
nuget Enforce grouped NuGet search results (#21442) 2022-10-17 01:18:09 +08:00
pub
pypi
rubygems
vagrant
api.go Fix package access for admins and inactive users (#21580) 2022-10-24 22:23:25 +03:00