Skip to content

Commit

Permalink
Merge pull request #283 from vishnoianil/fix-perm
Browse files Browse the repository at this point in the history
Fix permission check
  • Loading branch information
vishnoianil authored Apr 19, 2024
2 parents f6edb9f + 2f37ffc commit 5c42f60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gobot/handlers/issue_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ func (h *PRCommentHandler) checkAuthorPermission(ctx context.Context, client *gi
isAllowed := true
for _, teamName := range h.Maintainers {
var err error
isAllowed = true
teamMembership, _, err := client.Teams.GetTeamMembershipBySlug(ctx, prComment.repoOrg, teamName, prComment.author)
if err != nil {
isAllowed = false
Expand Down

0 comments on commit 5c42f60

Please sign in to comment.