gitea/models/fixtures
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
..
access.yml Fix user visible check (#21210) 2022-09-20 15:59:20 +08:00
access_token.yml
action.yml GetFeeds must always discard actions with dangling repo_id (#19598) 2022-05-05 11:39:26 -04:00
attachment.yml Add repo_id for attachment (#16958) 2021-09-08 17:19:30 +02:00
collaboration.yml
comment.yml
commit_status.yml Status-API (#1332) 2017-04-21 19:32:31 +08:00
commit_status_index.yml Fix commit status index problem (#17061) 2021-09-23 18:50:06 +08:00
deleted_branch.yml
deploy_key.yml
email_address.yml
external_login_user.yml add test coverage for original author conversion during migrations (#18506) 2022-02-01 13:20:28 -05:00
follow.yml Fix user visible check (#21210) 2022-09-20 15:59:20 +08:00
foreign_reference.yml Store the foreign ID of issues during migration (#18446) 2022-03-17 18:08:35 +01:00
gpg_key.yml Add missing fixture to clean gpg_key table (#2494) 2017-09-12 13:54:45 +03:00
gpg_key_import.yml
hook_task.yml
issue.yml Fix issue overview for teams (#19652) 2022-05-16 17:49:17 +08:00
issue_assignees.yml Fix issue overview for teams (#19652) 2022-05-16 17:49:17 +08:00
issue_index.yml Fix issue overview for teams (#19652) 2022-05-16 17:49:17 +08:00
issue_label.yml Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
issue_user.yml [API] ListIssues add more filters (#16174) 2021-06-16 18:33:37 -04:00
issue_watch.yml
label.yml
login_source.yml
milestone.yml migrations: a deadline at January 1st, 1970 is valid (#18237) 2022-01-13 14:03:30 +08:00
notice.yml
notification.yml
oauth2_application.yml
oauth2_authorization_code.yml
oauth2_grant.yml Fix wrong user in OpenID response (#16736) 2021-08-19 12:11:30 -04:00
org_user.yml Fix user visible check (#21210) 2022-09-20 15:59:20 +08:00
project.yml
project_board.yml Kanban board (#8346) 2020-08-16 23:07:38 -04:00
project_issue.yml
protected_branch.yml Don't recreate database in integration tests (#1697) 2017-05-11 23:32:43 +08:00
public_key.yml
pull_request.yml
reaction.yml
release.yml [API] ListReleases add filter for draft and pre-releases (#16175) 2021-06-17 10:58:10 +02:00
renamed_branch.yml Add a simple way to rename branch like gh (#15870) 2021-10-08 19:03:04 +02:00
repo_archiver.yml Rework repository archive (#14723) 2021-06-23 17:12:38 -04:00
repo_indexer_status.yml
repo_redirect.yml
repo_topic.yml Add API endpoint for accessing repo topics (#7963) 2019-09-03 23:46:24 +08:00
repo_transfer.yml
repo_unit.yml
repository.yml Exclude Archived repos from Dashboard Milestones (#19882) 2022-06-04 19:30:01 +01:00
review.yml
star.yml
stopwatch.yml
team.yml Fix user visible check (#21210) 2022-09-20 15:59:20 +08:00
team_repo.yml Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
team_unit.yml Fix issue overview for teams (#19652) 2022-05-16 17:49:17 +08:00
team_user.yml Fix user visible check (#21210) 2022-09-20 15:59:20 +08:00
topic.yml Add API endpoint for accessing repo topics (#7963) 2019-09-03 23:46:24 +08:00
tracked_time.yml
two_factor.yml org/members: display 2FA members states + optimize sql requests (#7621) 2019-08-02 12:06:27 -04:00
user.yml Fix user visible check (#21210) 2022-09-20 15:59:20 +08:00
user_open_id.yml
user_redirect.yml
watch.yml
webauthn_credential.yml Support webauthn (#17957) 2022-01-14 16:03:31 +01:00
webhook.yml