mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 10:48:37 +00:00
Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
This commit is contained in:
committed by
Kim "BKC" Carlbäcker
parent
08b9af9ad8
commit
04b9a7e7a2
@@ -388,7 +388,7 @@ func TestWebhook(ctx *context.Context) {
|
||||
},
|
||||
},
|
||||
},
|
||||
Repo: ctx.Repo.Repository.APIFormat(nil),
|
||||
Repo: ctx.Repo.Repository.APIFormat(models.AccessModeNone),
|
||||
Pusher: apiUser,
|
||||
Sender: apiUser,
|
||||
}
|
||||
|
Reference in New Issue
Block a user