forgejo/models
Lunny Xiao eabbddcd98
Restrict permission check on repositories and fix some problems (#5314)
* fix units permission problems

* fix some bugs and merge LoadUnits to repoAssignment

* refactor permission struct and add some copyright heads

* remove unused codes

* fix routes units check

* improve permission check

* add unit tests for permission

* fix typo

* fix tests

* fix some routes

* fix api permission check

* improve permission check

* fix some permission check

* fix tests

* fix tests

* improve some permission check

* fix some permission check

* refactor AccessLevel

* fix bug

* fix tests

* fix tests

* fix tests

* fix AccessLevel

* rename CanAccess

* fix tests

* fix comment

* fix bug

* add missing unit for test repos

* fix bug

* rename some functions

* fix routes check
2018-11-28 19:26:14 +08:00
..
fixtures Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
migrations
access.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
access_test.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
action.go
action_list.go
action_test.go
admin.go
admin_test.go
attachment.go
attachment_test.go
branches.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
branches_test.go
consistency.go
error.go
error_oauth2.go
external_login_user.go
git_diff.go
git_diff_test.go
gpg_key.go
gpg_key_test.go
graph.go
graph_test.go
helper.go
issue.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
issue_assignees.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
issue_assignees_test.go
issue_comment.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
issue_comment_test.go
issue_dependency.go
issue_dependency_test.go
issue_indexer.go
issue_label.go
issue_label_test.go
issue_list.go
issue_list_test.go
issue_mail.go
issue_milestone.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
issue_milestone_test.go
issue_reaction.go
issue_reaction_test.go
issue_stopwatch.go
issue_stopwatch_test.go
issue_test.go
issue_tracked_time.go
issue_tracked_time_test.go
issue_user.go
issue_user_test.go
issue_watch.go
issue_watch_test.go
lfs.go
lfs_lock.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
login_source.go
mail.go
main_test.go
models.go
models_sqlite.go
models_test.go
notification.go
notification_test.go
oauth2.go
org.go
org_team.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
org_team_test.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
org_test.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
pull.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
pull_test.go
release.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
release_test.go
repo.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
repo_activity.go
repo_branch.go
repo_collaboration.go
repo_collaboration_test.go
repo_editor.go
repo_indexer.go
repo_issue.go
repo_list.go
repo_list_test.go
repo_mirror.go
repo_permission.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
repo_permission_test.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
repo_redirect.go
repo_redirect_test.go
repo_test.go
repo_unit.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
repo_watch.go
repo_watch_test.go
review.go
review_test.go
ssh_key.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
ssh_key_test.go
star.go
star_test.go
status.go
status_test.go
test_fixtures.go
token.go
token_test.go
topic.go
topic_test.go
twofactor.go
u2f.go
u2f_test.go
unit.go
unit_tests.go
update.go
update_test.go
user.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
user_follow.go
user_follow_test.go
user_heatmap.go
user_heatmap_test.go
user_mail.go
user_mail_test.go
user_openid.go
user_openid_test.go
user_test.go Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
webhook.go
webhook_dingtalk.go
webhook_discord.go
webhook_slack.go
webhook_test.go
wiki.go
wiki_test.go