forgejo/models/packages
Danila Fominykh 60522fc96f
packages: Calculate package size quota using package creator ID instead of owner ID (#28007)
Changed behavior to calculate package quota limit using package `creator
ID` instead of `owner ID`.

Currently, users are allowed to create an unlimited number of
organizations, each of which has its own package limit quota, resulting
in the ability for users to have unlimited package space in different
organization scopes. This fix will calculate package quota based on
`package version creator ID` instead of `package version owner ID`
(which might be organization), so that users are not allowed to take
more space than configured package settings.

Also, there is a side case in which users can publish packages to a
specific package version, initially published by different user, taking
that user package size quota. Version in fix should be better because
the total amount of space is limited to the quota for users sharing the
same organization scope.
2023-11-14 00:38:50 +01:00
..
alpine
conan
conda
container List all Debian package versions in Packages (#27786) 2023-10-29 14:14:47 +00:00
cran
debian List all Debian package versions in Packages (#27786) 2023-10-29 14:14:47 +00:00
nuget Fix NuGet search endpoints (#25613) 2023-08-14 02:50:55 +00:00
descriptor.go
package.go
package_blob.go
package_blob_upload.go
package_cleanup_rule.go
package_file.go packages: Calculate package size quota using package creator ID instead of owner ID (#28007) 2023-11-14 00:38:50 +01:00
package_property.go
package_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
package_version.go List all Debian package versions in Packages (#27786) 2023-10-29 14:14:47 +00:00