mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 06:33:50 +03:00
a88e3e6ac0
- Consider private/limited users in the `AccessibleRepositoryCondition`
query, previously this only considered private/limited organization.
This limits the ability for anomynous users to do code search on
private/limited user's repository
- Unit test added.
(cherry picked from commit b70196653f
)
30 lines
564 B
YAML
30 lines
564 B
YAML
-
|
|
id: 1001
|
|
owner_id: 33
|
|
owner_name: user33
|
|
lower_name: repo1001
|
|
name: repo1001
|
|
default_branch: main
|
|
num_watches: 0
|
|
num_stars: 0
|
|
num_forks: 0
|
|
num_issues: 0
|
|
num_closed_issues: 0
|
|
num_pulls: 0
|
|
num_closed_pulls: 0
|
|
num_milestones: 0
|
|
num_closed_milestones: 0
|
|
num_projects: 0
|
|
num_closed_projects: 0
|
|
is_private: false
|
|
is_empty: false
|
|
is_archived: false
|
|
is_mirror: false
|
|
status: 0
|
|
is_fork: false
|
|
fork_id: 0
|
|
is_template: false
|
|
template_id: 0
|
|
size: 0
|
|
is_fsck_enabled: true
|
|
close_issues_via_commit_in_any_branch: false
|