mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
allow anonymous SSH clone
This commit is contained in:
@@ -35,7 +35,7 @@ func checkContextUser(ctx *middleware.Context, uid int64) *models.User {
|
||||
}
|
||||
|
||||
org, err := models.GetUserById(uid)
|
||||
if err == models.ErrUserNotExist {
|
||||
if models.IsErrUserNotExist(err) {
|
||||
return ctx.User
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user