1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 12:59:11 -05:00
forgejo/models/fixtures/access.yml
KN4CK3R 1b630ff7cd
Fix user visible check (#21210)
Fixes #21206

If user and viewer are equal the method should return true.
Also the common organization check was wrong as `count` can never be
less then 0.

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-09-20 15:59:20 +08:00

138 lines
1.1 KiB
YAML

-
id: 1
user_id: 2
repo_id: 3
mode: 4
-
id: 2
user_id: 2
repo_id: 5
mode: 4
-
id: 3
user_id: 2
repo_id: 24
mode: 2
-
id: 4
user_id: 2
repo_id: 32
mode: 4
-
id: 5
user_id: 4
repo_id: 3
mode: 2
-
id: 6
user_id: 4
repo_id: 4
mode: 2
-
id: 7
user_id: 4
repo_id: 40
mode: 2
-
id: 8
user_id: 15
repo_id: 21
mode: 2
-
id: 9
user_id: 15
repo_id: 22
mode: 2
-
id: 10
user_id: 15
repo_id: 23
mode: 4
-
id: 11
user_id: 15
repo_id: 24
mode: 4
-
id: 12
user_id: 15
repo_id: 32
mode: 2
-
id: 13
user_id: 18
repo_id: 21
mode: 2
-
id: 14
user_id: 18
repo_id: 22
mode: 2
-
id: 15
user_id: 18
repo_id: 23
mode: 4
-
id: 16
user_id: 18
repo_id: 24
mode: 4
-
id: 17
user_id: 20
repo_id: 24
mode: 1
-
id: 18
user_id: 20
repo_id: 27
mode: 4
-
id: 19
user_id: 20
repo_id: 28
mode: 4
-
id: 20
user_id: 29
repo_id: 4
mode: 2
-
id: 21
user_id: 29
repo_id: 24
mode: 1
-
id: 22
user_id: 31
repo_id: 27
mode: 4
-
id: 23
user_id: 31
repo_id: 28
mode: 4