mirror of
https://github.com/go-gitea/gitea
synced 2025-07-10 04:27:22 +00:00
code fix #941 caution: undertest
This commit is contained in:
@ -210,8 +210,11 @@ func Profile(ctx *middleware.Context) {
|
||||
if !ctx.IsSigned {
|
||||
continue
|
||||
}
|
||||
if has, _ := models.HasAccess(ctx.User, &models.Repository{Id: act.RepoId, IsPrivate: true},
|
||||
models.ACCESS_MODE_READ); !has {
|
||||
if has, _ := models.HasAccess(ctx.User,
|
||||
&models.Repository{
|
||||
Id: act.RepoId,
|
||||
IsPrivate: true,
|
||||
}, models.ACCESS_MODE_READ); !has {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user