gitea/models
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
..
actions Remove action runners on user deletion (#27902) 2023-11-05 13:48:32 +01:00
activities Refactor Find Sources and fix bug when view a user who belongs to an unactive auth source (#27798) 2023-11-03 01:41:00 +00:00
admin
asymkey
auth Fix wrong xorm Delete usage (#27995) 2023-11-12 07:38:45 +00:00
avatars
db
dbfs
fixtures
git
issues Enable system users for comment.LoadPoster (#28014) 2023-11-13 15:30:08 +01:00
migrations
organization
packages packages: Calculate package size quota using package creator ID instead of owner ID (#28007) 2023-11-14 00:38:50 +01:00
perm
project
pull
repo
secret
shared/types
system
unit
unittest
user
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org_team_test.go
org_team.go Refactor the function RemoveOrgUser (#27582) 2023-11-03 14:01:45 +00:00
org_test.go
org.go Refactor the function RemoveOrgUser (#27582) 2023-11-03 14:01:45 +00:00
repo_test.go
repo_transfer_test.go
repo_transfer.go
repo.go