We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a73248d commit 7a10bacCopy full SHA for 7a10bac
services/pull/pull.go
@@ -64,7 +64,8 @@ func NewPullRequest(ctx context.Context, opts *NewPullRequestOptions) error {
64
}
65
66
// user should be a collaborator or a member of the organization for base repo
67
- if (!issue.Poster.IsAdmin) && pr.Flow == issues_model.PullRequestFlowGithub {
+ canCreate := issue.Poster.IsAdmin || pr.Flow == issues_model.PullRequestFlowAGit
68
+ if !canCreate {
69
canCreate, err := repo_model.IsOwnerMemberCollaborator(ctx, repo, issue.Poster.ID)
70
if err != nil {
71
return err
0 commit comments