mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-13 05:26:16 +01:00
Make /users/{username}/repos list private repos the current user has access to (#8621)
This commit is contained in:
parent
ace0346c66
commit
22272fe1e4
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ func ListUserRepos(ctx *context.APIContext) {
|
||||||
if ctx.Written() {
|
if ctx.Written() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
private := ctx.IsSigned && (ctx.User.ID == user.ID || ctx.User.IsAdmin)
|
private := ctx.IsSigned
|
||||||
listUserRepos(ctx, user, private)
|
listUserRepos(ctx, user, private)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue