0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-03 07:49:12 +01:00
gitea/models/user
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
..
avatar.go
badge.go Add badge capabilities to users (#20607) 2022-08-18 02:25:25 +03:00
email_address_test.go
email_address.go
error.go
external_login_user.go
follow_test.go
follow.go
list.go
main_test.go
openid_test.go
openid.go
redirect_test.go
redirect.go
search.go Add migrate repo archiver and packages storage support on command line (#20757) 2022-08-16 12:05:15 +08:00
setting_keys.go
setting_test.go
setting.go
user_test.go Fix user visible check (#21210) 2022-09-20 15:59:20 +08:00
user_update.go Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
user.go Fix user visible check (#21210) 2022-09-20 15:59:20 +08:00