Skip to content

Commit 1e3d908

Browse files
committed
use doer permissions for issue delete webhook payload
1 parent c511c71 commit 1e3d908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/webhook/notifier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func (m *webhookNotifier) DeleteIssue(ctx context.Context, doer *user_model.User
305305
return
306306
}
307307

308-
permission, _ := access_model.GetUserRepoPermission(ctx, issue.Repo, issue.Poster)
308+
permission, _ := access_model.GetUserRepoPermission(ctx, issue.Repo, doer)
309309
if err := PrepareWebhooks(ctx, EventSource{Repository: issue.Repo}, webhook_module.HookEventIssues, &api.IssuePayload{
310310
Action: api.HookIssueDeleted,
311311
Index: issue.Index,

0 commit comments

Comments
 (0)