]> source.dussan.org Git - gitea.git/commit
Fix condition for is_internal (#22095) (#22132)
authorKN4CK3R <admin@oldschoolhack.me>
Wed, 14 Dec 2022 18:38:15 +0000 (19:38 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Dec 2022 18:38:15 +0000 (13:38 -0500)
commit9e49270676f4c38e5bff3679ddbca6a92f6325e0
tree63b1f639a1366b0efa9424d10386d3c1a3edf535
parent194b780cd7f943d5155faf026223f4d7ff764daa
Fix condition for is_internal (#22095) (#22132)

Backport of #22095

I changed it to a static condition because it needs a new version of
xorm which is only available in 1.19. This change is valid because
`SearchLatestVersions` is never called to list internal versions and
there will no change to this behaviour in <1.19.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
models/packages/package_version.go
routers/api/packages/npm/npm.go