mirror of
https://github.com/go-gitea/gitea
synced 2025-07-29 05:38:37 +00:00
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
This commit is contained in:
committed by
Lunny Xiao
parent
35c3ea952a
commit
69a255defb
@@ -96,3 +96,23 @@
|
||||
authorize: 1 # read
|
||||
num_repos: 0
|
||||
num_members: 0
|
||||
|
||||
-
|
||||
id: 12
|
||||
org_id: 3
|
||||
lower_name: team12creators
|
||||
name: team12Creators
|
||||
authorize: 3 # admin
|
||||
num_repos: 0
|
||||
num_members: 1
|
||||
can_create_org_repo: true
|
||||
|
||||
-
|
||||
id: 13
|
||||
org_id: 6
|
||||
lower_name: team13notcreators
|
||||
name: team13NotCreators
|
||||
authorize: 3 # admin
|
||||
num_repos: 0
|
||||
num_members: 1
|
||||
can_create_org_repo: false
|
||||
|
Reference in New Issue
Block a user