forgejo/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 Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
container Add GET and DELETE endpoints for Docker blob uploads (#21367) 2022-10-07 23:30:59 +08:00
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 Allow uppercase ASCII alphabet in PyPI package names (#21095) 2022-09-07 21:18:51 +01:00
rubygems
vagrant
api.go Fix package access for admins and inactive users (#21580) 2022-10-24 22:23:25 +03:00