]> source.dussan.org Git - gitea.git/commit
Prevent panic when editing forked repos by API (#14960)
authorzeripath <art27@cantab.net>
Thu, 11 Mar 2021 18:09:52 +0000 (18:09 +0000)
committerGitHub <noreply@github.com>
Thu, 11 Mar 2021 18:09:52 +0000 (19:09 +0100)
commit5705f72fd6a1c0ebe3f3127faa7ebea5af7100d0
tree4f3853ce9f5c1311077c965d7071a9b1e78e0999
parentc8e5c79cfda7e4c36b1a98c1abd3cdb50bde9d77
Prevent panic when editing forked repos by API (#14960)

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>
routers/api/v1/repo/repo.go