You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ui.explore settings to control view of explore pages
Add `[ui.explore]` settings to allow restricting the
explore pages to logged in users only and to restrict
the showing of users to only those with publically available
repositories.
The two proposed settings are:
- `REQUIRE_SIGNIN_VIEW`: Only allows access to the explore pages if the
user is signed in. Also restricts `/api/v1/user/search`.
- `ONLY_SHOW_USERS_WITH_PUBLIC_REPOS`: Only shows users with public
repos on the explore page. `/api/v1/user/search` will only show users
with public repos unless the user the is signed in.
Fixgo-gitea#2908
Signed-off-by: Andrew Thornton <art27@cantab.net>
iferr:=sess.Select("owner_id as id, count(id) AS num_public_repos").Table("repository").Where("repository.is_private", false).GroupBy("owner_id").Limit(batchSize, start).Asc("id").Find(&users); err!=nil {
0 commit comments