forgejo/models
Lunny Xiao f663773200
Fix limited user cannot view himself's profile (#21212)
backport #21210, fix #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.

Tests are on main branch.
2022-09-20 16:00:46 +08:00
..
admin
appstate
asymkey Pad GPG Key ID with preceding zeroes (#20878) (#20885) 2022-08-22 19:35:18 +01:00
auth Fix panic when an invalid oauth2 name is passed (#20820) (#20900) 2022-08-21 23:23:48 -04:00
avatars
db Add migrate repo archiver and packages storage support on command line (#20757) (#20806) 2022-08-18 09:27:56 +08:00
fixtures Fix SQL Query for SearchTeam (#20844) (#20872) 2022-08-21 19:31:51 +01:00
foreignreference
git Add migrate repo archiver and packages storage support on command line (#20757) (#20806) 2022-08-18 09:27:56 +08:00
issues Fix reaction of issues (#21185) (#21196) 2022-09-18 12:04:09 +08:00
migrations Add another index for Action table on postgres (#21033) (#21054) 2022-09-04 16:11:02 +01:00
organization Fix SQL Query for SearchTeam (#20844) (#20872) 2022-08-21 19:31:51 +01:00
packages Fix delete user missed some comments (#21067) (#21068) 2022-09-06 06:48:57 +08:00
perm
project
pull
repo Fix hard-coded timeout and error panic in API archive download endpoint (#20925) (#21051) 2022-09-06 07:54:47 +01:00
unit
unittest
user Fix limited user cannot view himself's profile (#21212) 2022-09-20 16:00:46 +08:00
webhook
action.go Add another index for Action table on postgres (#21033) (#21054) 2022-09-04 16:11:02 +01:00
action_list.go
action_test.go
consistency.go
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate.go
migrate_test.go
notification.go
notification_test.go
org.go
org_team.go
org_team_test.go
org_test.go
release.go
repo.go Fix hard-coded timeout and error panic in API archive download endpoint (#20925) (#21051) 2022-09-06 07:54:47 +01:00
repo_activity.go
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go
statistic.go
task.go
token.go
token_test.go
upload.go
user.go Fix delete user missed some comments (#21067) (#21068) 2022-09-06 06:48:57 +08:00
user_heatmap.go
user_heatmap_test.go