diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-09-20 09:59:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 15:59:20 +0800 |
commit | 1b630ff7cdbb2ec48b67f8e3295c142f5ad77180 (patch) | |
tree | 94b691df8f8a5ced3b5cba28f975d360cff89b31 /models/fixtures/team_user.yml | |
parent | a196302472d559f04ed9a4387156bedf26b7c55d (diff) | |
download | gitea-1b630ff7cdbb2ec48b67f8e3295c142f5ad77180.tar.gz gitea-1b630ff7cdbb2ec48b67f8e3295c142f5ad77180.zip |
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>
Diffstat (limited to 'models/fixtures/team_user.yml')
-rw-r--r-- | models/fixtures/team_user.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/models/fixtures/team_user.yml b/models/fixtures/team_user.yml index 8f21164df4..845741effd 100644 --- a/models/fixtures/team_user.yml +++ b/models/fixtures/team_user.yml @@ -87,3 +87,9 @@ org_id: 17 team_id: 9 uid: 29 + +- + id: 16 + org_id: 19 + team_id: 6 + uid: 31 |