You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/models/user
KN4CK3R 7690de56f7
Simplify visibility checks (#20406)
Was looking into the visibility checks because I need them for something different and noticed the checks are more complicated than they have to be.

The rule is just: user/org is visible if
- The doer is a member of the org, regardless of the org visibility
- The doer is not restricted and the user/org is public or limited
2 years ago
..
avatar.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
email_address.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
email_address_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2 years ago
error.go Move user related model into models/user (#17781) 3 years ago
external_login_user.go add test coverage for original author conversion during migrations (#18506) 2 years ago
follow.go Use neutral language in comments and docs (#20135) 2 years ago
follow_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2 years ago
list.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
main_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2 years ago
openid.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
openid_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2 years ago
redirect.go Move EmailAddress & UserRedirect into models/user/ (#17607) 3 years ago
redirect_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2 years ago
search.go Simplify visibility checks (#20406) 2 years ago
setting.go Add config options to hide issue events (#17414) 2 years ago
setting_keys.go User keypairs and HTTP signatures for ActivityPub federation using go-ap (#19133) 2 years ago
setting_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2 years ago
user.go Add order by for assignee no sort issue (#20053) 2 years ago
user_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2 years ago