Преглед на файлове

Make /users/{username}/repos list private repos the current user has access to (#8621)

tags/v1.11.0-rc1
7FM преди 4 години
родител
ревизия
22272fe1e4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      routers/api/v1/user/repo.go

+ 1
- 1
routers/api/v1/user/repo.go Целия файл

@@ -52,7 +52,7 @@ func ListUserRepos(ctx *context.APIContext) {
if ctx.Written() {
return
}
private := ctx.IsSigned && (ctx.User.ID == user.ID || ctx.User.IsAdmin)
private := ctx.IsSigned
listUserRepos(ctx, user, private)
}


Loading…
Отказ
Запис