1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-04 08:38:37 +00:00

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>
This commit is contained in:
KN4CK3R
2022-09-20 09:59:20 +02:00
committed by GitHub
parent a196302472
commit 1b630ff7cd
9 changed files with 109 additions and 5 deletions

View File

@@ -69,3 +69,9 @@
uid: 2
org_id: 17
is_public: true
-
id: 13
uid: 31
org_id: 19
is_public: true