mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-03 09:52:26 +02:00
allow anonymous SSH clone
This commit is contained in:
parent
487fc8ca39
commit
e50982f5ec
20 changed files with 109 additions and 92 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue