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
KN4CK3R 321383db22
Revert package access change from #23879 (#25707)
Fixes (?) #25538
Fixes https://codeberg.org/forgejo/forgejo/issues/972

Regression #23879

#23879 introduced a change which prevents read access to packages if a
user is not a member of an organization.

That PR also contained a change which disallows package access if the
team unit is configured with "no access" for packages. I don't think
this change makes sense (at the moment). It may be relevant for private
orgs. But for public or limited orgs that's useless because an
unauthorized user would have more access rights than the team member.
This PR restores the old behaviour "If a user has read access for an
owner, they can read packages".

---------

Co-authored-by: Giteabot <teabot@gitea.io>
2 years ago
..
actions Fix content holes in Actions task logs file (#25560) 2 years ago
activities Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
admin Replace `interface{}` with `any` (#25686) 2 years ago
asymkey Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
auth Less naked returns (#25713) 2 years ago
avatars Avoid warning for system setting when start up (#23054) 2 years ago
db Replace `interface{}` with `any` (#25686) 2 years ago
dbfs Fix content holes in Actions task logs file (#25560) 2 years ago
fixtures Revert package access change from #23879 (#25707) 2 years ago
git Newly pushed branches hints on repository home page (#25715) 2 years ago
issues Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
migrations Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
organization Remove unused code (#25734) 2 years ago
packages Test if container blob is accessible before mounting (#22759) 2 years ago
perm some less naked returns (#25682) 2 years ago
project Improve GetBoards and getDefaultBoard (#22981) 2 years ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Newly pushed branches hints on repository home page (#25715) 2 years ago
secret Support configuration variables on Gitea Actions (#24724) 2 years ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2 years ago
system Replace `interface{}` with `any` (#25686) 2 years ago
unit Rewrite logger system (#24726) 2 years ago
unittest Replace `interface{}` with `any` (#25686) 2 years ago
user Fix inconsistent user profile layout across tabs (#25625) 2 years ago
webhook Replace `interface{}` with `any` (#25686) 2 years ago
error.go Sync branches into databases (#22743) 2 years ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Merge setting.InitXXX into one function with options (#24389) 2 years ago
migrate.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
migrate_test.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Remove org users who belong to no teams (#24247) 2 years ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo_collaboration_test.go Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Fix unclear `IsRepositoryExist` logic (#24374) 2 years ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago