]> source.dussan.org Git - gitea.git/commit
Team permission to create repository in organization (#8312)
authorDavid Svantesson <davidsvantesson@gmail.com>
Wed, 20 Nov 2019 11:27:49 +0000 (12:27 +0100)
committerLunny Xiao <xiaolunwen@gmail.com>
Wed, 20 Nov 2019 11:27:49 +0000 (19:27 +0800)
commit69a255defbf2747b066b2aeee66ba76cdd37104d
tree8cc6f166c06ff9ac334b3f5f69476fa4394ae6a2
parent35c3ea952a6eb558e69de55fc94d301676feb935
Team permission to create repository in organization (#8312)

* Add team permission setting to allow creating repo in organization.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add test case for creating repo when have team creation access.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* build error: should omit comparison to bool constant

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add comment on exported functions

* Fix fixture consistency, fix existing unit tests

* Fix boolean comparison in xorm query.

* addCollaborator and changeCollaborationAccessMode separate steps

More clear to use different if-cases.

* Create and commit xorm session

* fix

* Add information of create repo permission in team sidebar

* Add migration step

* Clarify that repository creator will be administrator.

* Fix some things after merge

* Fix language text that use html

* migrations file

* Create repository permission -> Create repositories

* fix merge

* fix review comments
27 files changed:
integrations/api_repo_test.go
models/fixtures/org_user.yml
models/fixtures/team.yml
models/fixtures/team_user.yml
models/fixtures/user.yml
models/migrations/migrations.go
models/migrations/v109.go [new file with mode: 0644]
models/org.go
models/org_team.go
models/org_test.go
models/repo.go
models/repo_collaboration.go
models/user_test.go
models/userlist_test.go
modules/auth/org.go
modules/context/org.go
modules/convert/convert.go
modules/structs/org_team.go
options/locale/locale_en-US.ini
routers/api/v1/org/team.go
routers/api/v1/repo/repo.go
routers/org/teams.go
routers/repo/repo.go
templates/org/home.tmpl
templates/org/team/new.tmpl
templates/org/team/sidebar.tmpl
templates/swagger/v1_json.tmpl