This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/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.go
email_address_test.go
error.go
external_login_user.go
follow.go
follow_test.go
list.go
main_test.go
openid.go
openid_test.go
redirect.go
redirect_test.go
search.go Add migrate repo archiver and packages storage support on command line (#20757) 2022-08-16 12:05:15 +08:00
setting.go
setting_keys.go
setting_test.go
user.go Fix user visible check (#21210) 2022-09-20 15:59:20 +08:00
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