]> source.dussan.org Git - gitea.git/commit
API pull's head/base have correct permission (#17214)
authorpricly-yellow <79628427+pricly-yellow@users.noreply.github.com>
Thu, 7 Oct 2021 00:03:37 +0000 (07:03 +0700)
committerGitHub <noreply@github.com>
Thu, 7 Oct 2021 00:03:37 +0000 (02:03 +0200)
commit4afdb1eb78ce77fad8e1d2952c69b3315a836548
treece3c95b6bdf61da50fc0773e8ca3a5f3be73b8a0
parent67bc04fe21e279805f2f4163791e28272e8133b1
API pull's head/base have correct permission (#17214)

close #17181

* for all pull requests API return permissions of caller
* for all webhook return empty permissions

Signed-off-by: Danila Kryukov <pricly_yellow@dismail.de>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: 6543 <6543@obermui.de>
modules/convert/pull.go
modules/convert/pull_test.go
modules/notification/webhook/webhook.go
routers/api/v1/repo/pull.go