]> source.dussan.org Git - gitea.git/commit
Prevent panic when editing forked repos by API (#14960) (#14963)
author6543 <6543@obermui.de>
Fri, 12 Mar 2021 00:54:18 +0000 (01:54 +0100)
committerGitHub <noreply@github.com>
Fri, 12 Mar 2021 00:54:18 +0000 (08:54 +0800)
commit33c2c49627455bd19d411ecd858c2ca2eceab731
treec5a70a7f97b4556445500f23c9ec0426a7ff74fc
parent05ac72cf33e2e3baac4e0dc0fd83ca87292a4a91
Prevent panic when editing forked repos by API (#14960) (#14963)

When editing forked repos using the API the BaseRepository needs to loaded
in order to check its visibility otherwise there will be NPE panic.

Fix #14956

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
routers/api/v1/repo/repo.go