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/access.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/access.yml')
-rw-r--r-- | models/fixtures/access.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/models/fixtures/access.yml b/models/fixtures/access.yml index 4027e5fe92..446502843e 100644 --- a/models/fixtures/access.yml +++ b/models/fixtures/access.yml @@ -124,3 +124,15 @@ 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 + |