1
0
Fork 0
forgejo/models
David Svantesson 72aa5a20ec Add team option to grant rights for all organization repositories (#8688)
* Add field IsAllRepositories to team

* Add AllRepositories to team UI

* Manage team with access to all repositories

* Add field IsAllRepositories to team API

* put backticks around table/column names

* rename IsAllRepositories to IncludesAllRepositories

* do not reload slice if already loaded

* add repo to teams with access to all repositories when changing repo owner

* improve tests for teams with access to all repositories

* Merge branch 'master'

* Change code for adding all repositories

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* fmt after merge

* Change code in API EditTeam similar to EditTeamPost web interface

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Clarify that all repositories will be added

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* All repositories option under Permissions headline

* New setting group 'Repository access'

* Move check IncludeAllRepositories to removeRepository.

* Revert "Move check IncludeAllRepositories to removeRepository." and add comment instead.

This reverts commit 753b7d205b.

* Clarify help text what options do.
2019-11-06 11:37:14 +02:00
..
fixtures Update heatmap fixtures to restore tests (#8615) 2019-10-21 21:19:53 +01:00
migrations Add team option to grant rights for all organization repositories (#8688) 2019-11-06 11:37:14 +02:00
access.go
access_test.go
action.go
action_list.go
action_test.go
admin.go
admin_test.go
attachment.go
attachment_test.go
branches.go Allow Protected Branches to Whitelist Deploy Keys (#8483) 2019-10-21 09:21:45 +01:00
branches_test.go
commit_status.go
commit_status_test.go
consistency.go
context.go
convert.go
error.go Prevent upload (overwrite) of lfs locked file (#8769) 2019-11-02 15:37:05 +08:00
error_oauth2.go
external_login_user.go
gpg_key.go
gpg_key_test.go
graph.go
graph_test.go
helper.go
helper_directory.go
helper_environment.go
issue.go Fix (open/closed) issue count when label excluded (#8815) 2019-11-05 01:48:51 -05:00
issue_assignees.go Move more issue assignee code from models to issue service (#8690) 2019-10-28 10:11:50 +08:00
issue_assignees_test.go Move more issue assignee code from models to issue service (#8690) 2019-10-28 10:11:50 +08:00
issue_comment.go mark review comment as invalidated when file is deleted (#8751) 2019-10-31 13:59:36 -04:00
issue_comment_list.go
issue_comment_test.go
issue_dependency.go
issue_dependency_test.go
issue_label.go Allow cross-repository dependencies on issues (#7901) 2019-10-31 13:06:10 +08:00
issue_label_test.go
issue_list.go
issue_list_test.go
issue_lock.go
issue_milestone.go [Fix] milestone close timestamp (#8728) 2019-10-29 10:35:50 +08:00
issue_milestone_test.go
issue_reaction.go
issue_reaction_test.go
issue_stopwatch.go
issue_stopwatch_test.go
issue_test.go Allow cross-repository dependencies on issues (#7901) 2019-10-31 13:06:10 +08:00
issue_tracked_time.go
issue_tracked_time_test.go
issue_user.go Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
issue_user_test.go
issue_watch.go Add API for Issue set Subscription (#8729) 2019-11-02 23:27:49 +08:00
issue_watch_test.go
issue_xref.go
lfs.go Add basic repository lfs management (#7199) 2019-10-28 18:31:55 +00:00
lfs_lock.go
log.go
login_source.go
main_test.go
migrate.go
models.go Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528) 2019-10-21 22:20:47 +01:00
models_test.go
notification.go
notification_test.go
oauth2.go
oauth2_application.go
oauth2_application_test.go
org.go Add team option to grant rights for all organization repositories (#8688) 2019-11-06 11:37:14 +02:00
org_team.go Add team option to grant rights for all organization repositories (#8688) 2019-11-06 11:37:14 +02:00
org_team_test.go Add team option to grant rights for all organization repositories (#8688) 2019-11-06 11:37:14 +02:00
org_test.go
pull.go Move pull list code to a seperate file (#8748) 2019-10-30 20:33:10 +00:00
pull_list.go Allow cross-repository dependencies on issues (#7901) 2019-10-31 13:06:10 +08:00
pull_test.go
release.go
repo.go Add team option to grant rights for all organization repositories (#8688) 2019-11-06 11:37:14 +02:00
repo_activity.go
repo_branch.go
repo_collaboration.go
repo_collaboration_test.go
repo_indexer.go
repo_issue.go
repo_list.go Add basic repository lfs management (#7199) 2019-10-28 18:31:55 +00:00
repo_list_test.go
repo_mirror.go
repo_permission.go Move more issue assignee code from models to issue service (#8690) 2019-10-28 10:11:50 +08:00
repo_permission_test.go
repo_redirect.go
repo_redirect_test.go
repo_sign.go
repo_tag.go
repo_test.go
repo_unit.go
repo_watch.go
repo_watch_test.go
review.go
review_test.go
ssh_key.go Fix SSH2 conditonal in key parsing code (#8806) 2019-11-03 19:08:18 +08:00
ssh_key_test.go Fix SSH2 conditonal in key parsing code (#8806) 2019-11-03 19:08:18 +08:00
star.go
star_test.go
task.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 Allow Protected Branches to Whitelist Deploy Keys (#8483) 2019-10-21 09:21:45 +01:00
update_test.go
upload.go
user.go Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
user_follow.go
user_follow_test.go
user_heatmap.go
user_heatmap_test.go Update heatmap fixtures to restore tests (#8615) 2019-10-21 21:19:53 +01:00
user_mail.go
user_mail_test.go
user_openid.go
user_openid_test.go
user_test.go
userlist.go Add API for Issue set Subscription (#8729) 2019-11-02 23:27:49 +08:00
userlist_test.go
webhook.go Move more webhook codes from models to webhook module (#8802) 2019-11-03 22:13:25 +00:00
webhook_test.go Move more webhook codes from models to webhook module (#8802) 2019-11-03 22:13:25 +00:00
wiki.go
wiki_test.go