1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05: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 Replace ServeStream with ServeContent (#20903) 2022-08-25 12:05:21 -04:00
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 Replace ServeStream with ServeContent (#20903) 2022-08-25 12:05:21 -04:00
helm Replace ServeStream with ServeContent (#20903) 2022-08-25 12:05:21 -04:00
helper Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
maven Replace ServeStream with ServeContent (#20903) 2022-08-25 12:05:21 -04:00
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 Replace ServeStream with ServeContent (#20903) 2022-08-25 12:05:21 -04:00
pypi Allow uppercase ASCII alphabet in PyPI package names (#21095) 2022-09-07 21:18:51 +01:00
rubygems Replace ServeStream with ServeContent (#20903) 2022-08-25 12:05:21 -04:00
vagrant Add support for Vagrant packages (#20930) 2022-08-29 15:04:45 +08:00
api.go Fix package access for admins and inactive users (#21580) 2022-10-24 22:23:25 +03:00