aboutsummaryrefslogtreecommitdiffstats
path: root/models/fixtures/team_unit.yml
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-07-09 15:00:07 +0200
committerGitHub <noreply@github.com>2023-07-09 13:00:07 +0000
commit321383db22b19e302aafe59194f0b6539257d90f (patch)
tree135d83b42bffe38082dde5ccf3b7515c9ca2c2b7 /models/fixtures/team_unit.yml
parent819aed35bff81574920c2a87eddbebed5ddfda1f (diff)
downloadgitea-321383db22b19e302aafe59194f0b6539257d90f.tar.gz
gitea-321383db22b19e302aafe59194f0b6539257d90f.zip
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>
Diffstat (limited to 'models/fixtures/team_unit.yml')
-rw-r--r--models/fixtures/team_unit.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/models/fixtures/team_unit.yml b/models/fixtures/team_unit.yml
index 5257d2c385..5d2ba2fb6c 100644
--- a/models/fixtures/team_unit.yml
+++ b/models/fixtures/team_unit.yml
@@ -273,4 +273,10 @@
id: 46
team_id: 17
type: 9 # package
- access_mode: 0
+ access_mode: 2
+
+-
+ id: 47
+ team_id: 20
+ type: 9 # package
+ access_mode: 2