1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-19 04:04:59 +01:00
gitea/models
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
..
activities Fix various typos (#21103) 2022-09-07 14:40:36 -04:00
admin
appstate
asymkey
auth
avatars
db
fixtures Fix user visible check (#21210) 2022-09-20 15:59:20 +08:00
foreignreference
git
issues Fix reaction of issues (#21185) 2022-09-17 19:54:03 +08:00
migrations
organization [API] teamSearch show teams with no members if user is admin (#21204) 2022-09-19 20:02:29 +08:00
packages Fix various typos (#21103) 2022-09-07 14:40:36 -04:00
perm
project
pull
repo Fix various typos (#21103) 2022-09-07 14:40:36 -04:00
unit
unittest
user Fix user visible check (#21210) 2022-09-20 15:59:20 +08:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate_test.go
migrate.go
org_team_test.go
org_team.go
org_test.go
org.go
repo_collaboration_test.go
repo_collaboration.go
repo_test.go
repo_transfer_test.go
repo_transfer.go
repo.go
user.go