Skip to content

Commit 71f5c00

Browse files
Fix boolean comparison in xorm query.
1 parent 51a8713 commit 71f5c00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/org.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ func CanCreateOrgRepo(orgID, uid int64) (bool, error) {
347347
return owner, err
348348
}
349349
return x.
350-
Where("team.can_create_org_repo = true").
350+
Where(builder.Eq{"team.can_create_org_repo": true}).
351351
Join("INNER", "team_user", "team_user.team_id = team.id").
352352
And("team_user.uid = ?", uid).
353353
And("team_user.org_id = ?", orgID).

0 commit comments

Comments
 (0)