Skip to content

Commit fb3ee17

Browse files
committed
Check user/org repo limit instead of doer (30011)
1 parent e45450b commit fb3ee17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (err ErrRepoFilesAlreadyExist) Unwrap() error {
113113

114114
// CheckCreateRepository check if could created a repository
115115
func CheckCreateRepository(ctx context.Context, doer, u *user_model.User, name string, overwriteOrAdopt bool) error {
116-
if !doer.CanCreateRepo() {
116+
if !u.CanCreateRepo() {
117117
return ErrReachLimitOfRepo{u.MaxRepoCreation}
118118
}
119119

0 commit comments

Comments
 (0)