You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
1 year ago
..
actions Remove action runners on user deletion (#27902) 1 year ago
activities Refactor Find Sources and fix bug when view a user who belongs to an unactive auth source (#27798) 1 year ago
admin Next round of `db.DefaultContext` refactor (#27089) 1 year ago
asymkey Replace more db.DefaultContext (#27628) 1 year ago
auth Fix wrong xorm Delete usage (#27995) 1 year ago
avatars Final round of `db.DefaultContext` refactor (#27587) 1 year ago
db refactor: make db iterate context aware (#27710) 1 year ago
dbfs make writing main test easier (#27270) 1 year ago
fixtures Add unit tests for action runner token (#27670) 1 year ago
git Upgrade xorm to 1.3.4 (#27807) 1 year ago
issues Enable system users for comment.LoadPoster (#28014) 1 year ago
migrations Add Index to pull_auto_merge.doer_id (#27811) 1 year ago
organization Even more `db.DefaultContext` refactor (#27352) 1 year ago
packages packages: Calculate package size quota using package creator ID instead of owner ID (#28007) 1 year ago
perm Even more `db.DefaultContext` refactor (#27352) 1 year ago
project More `db.DefaultContext` refactor (#27265) 1 year ago
pull Add Index to pull_auto_merge.doer_id (#27811) 1 year ago
repo Replace more db.DefaultContext (#27628) 1 year ago
secret Refactor secrets modification logic (#26873) 1 year ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2 years ago
system Replace more db.DefaultContext (#27628) 1 year ago
unit Make actions default enabled for newly created repository if global configuraion enabled (#27482) 1 year ago
unittest Upgrade xorm (#27673) 1 year ago
user Replace -1 with GhostUserID (#27703) 1 year ago
webhook Final round of `db.DefaultContext` refactor (#27587) 1 year ago
error.go Sync branches into databases (#22743) 2 years ago
fixture_generation.go Replace more db.DefaultContext (#27628) 1 year ago
fixture_test.go Replace more db.DefaultContext (#27628) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
org.go Refactor the function RemoveOrgUser (#27582) 1 year ago
org_team.go Refactor the function RemoveOrgUser (#27582) 1 year ago
org_team_test.go Reduce usage of `db.DefaultContext` (#27073) 1 year ago
org_test.go Replace more db.DefaultContext (#27628) 1 year ago
repo.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
repo_test.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
repo_transfer.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
repo_transfer_test.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago