mirror of
https://github.com/go-gitea/gitea
synced 2024-11-01 03:39:28 +01:00
1b630ff7cd
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>
77 lines
671 B
YAML
77 lines
671 B
YAML
-
|
|
id: 1
|
|
uid: 2
|
|
org_id: 3
|
|
is_public: true
|
|
|
|
-
|
|
id: 2
|
|
uid: 4
|
|
org_id: 3
|
|
is_public: false
|
|
|
|
-
|
|
id: 3
|
|
uid: 5
|
|
org_id: 6
|
|
is_public: true
|
|
|
|
-
|
|
id: 4
|
|
uid: 5
|
|
org_id: 7
|
|
is_public: false
|
|
|
|
-
|
|
id: 5
|
|
uid: 15
|
|
org_id: 17
|
|
is_public: true
|
|
|
|
-
|
|
id: 6
|
|
uid: 18
|
|
org_id: 17
|
|
is_public: false
|
|
|
|
-
|
|
id: 7
|
|
uid: 20
|
|
org_id: 19
|
|
is_public: true
|
|
|
|
-
|
|
id: 8
|
|
uid: 24
|
|
org_id: 25
|
|
is_public: true
|
|
|
|
-
|
|
id: 9
|
|
uid: 28
|
|
org_id: 3
|
|
is_public: true
|
|
|
|
-
|
|
id: 10
|
|
uid: 28
|
|
org_id: 6
|
|
is_public: true
|
|
|
|
-
|
|
id: 11
|
|
uid: 29
|
|
org_id: 17
|
|
is_public: true
|
|
|
|
-
|
|
id: 12
|
|
uid: 2
|
|
org_id: 17
|
|
is_public: true
|
|
|
|
-
|
|
id: 13
|
|
uid: 31
|
|
org_id: 19
|
|
is_public: true
|