forgejo/modules
Giteabot 372b622c2b
Revert package access change from #23879 (#25707) (#25785)
Backport #25707 by @KN4CK3R

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: KN4CK3R <admin@oldschoolhack.me>
2023-07-09 21:00:42 +00:00
..
actions Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
activitypub
analyze
assetfs
auth
avatar
base Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
cache Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
charset Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
container
context Revert package access change from #23879 (#25707) (#25785) 2023-07-09 21:00:42 +00:00
csv
doctor Refactor path & config system (#25330) (#25416) 2023-06-22 16:27:18 +00:00
emoji
eventsource Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
generate
git Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
gitgraph
graceful Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
hcaptcha
highlight
hostmatcher
html Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
httpcache
httplib Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
indexer Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
issue/template Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
json Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
label
lfs
log Fix sub-command log level (#25537) (#25553) 2023-06-28 17:35:20 +08:00
markup Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
mcaptcha
metrics
migration Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
mirror
nosql Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
notification Add Adopt repository event and handler (#25497) (#25518) 2023-06-26 20:09:07 +00:00
options
packages Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
paginator
pprof
private Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
process Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
proxy
proxyprotocol
public
queue
recaptcha
references
regexplru
repository
secret
session Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
setting Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
sitemap
ssh
storage Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
structs Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
svg Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
sync
system
templates Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
test Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
testlogger Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
timeutil
translation Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
turnstile
typesniffer
updatechecker
upload
uri
user
util Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
validation Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
web Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
webhook