mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-25 03:29:40 +08:00
76408d50fb
* org/members: display 2FA state * fix comment typo * lay down UserList bases * add basic test for previous methods * add comment for UserList type * add valid two-fa account * test new UserList methods * optimize MembersIsPublic by side loading info on GetMembers + fix integrations tests * respect fmt rules * use map for data * Optimize GetTwoFaStatus * rewrite by using existing sub func * Optimize IsUserOrgOwner * remove un-used code * tests: cover empty org + fix import order * tests: add ErrTeamNotExist path * tests: fix wrong expected result
90 lines
1.1 KiB
YAML
90 lines
1.1 KiB
YAML
-
|
|
id: 1
|
|
org_id: 3
|
|
lower_name: owners
|
|
name: Owners
|
|
authorize: 4 # owner
|
|
num_repos: 3
|
|
num_members: 1
|
|
|
|
-
|
|
id: 2
|
|
org_id: 3
|
|
lower_name: team1
|
|
name: team1
|
|
authorize: 2 # write
|
|
num_repos: 1
|
|
num_members: 2
|
|
|
|
-
|
|
id: 3
|
|
org_id: 6
|
|
lower_name: owners
|
|
name: Owners
|
|
authorize: 4 # owner
|
|
num_repos: 0
|
|
num_members: 1
|
|
|
|
-
|
|
id: 4
|
|
org_id: 7
|
|
lower_name: owners
|
|
name: Owners
|
|
authorize: 4 # owner
|
|
num_repos: 0
|
|
num_members: 1
|
|
|
|
-
|
|
id: 5
|
|
org_id: 17
|
|
lower_name: owners
|
|
name: Owners
|
|
authorize: 4 # owner
|
|
num_repos: 2
|
|
num_members: 2
|
|
|
|
-
|
|
id: 6
|
|
org_id: 19
|
|
lower_name: owners
|
|
name: Owners
|
|
authorize: 4 # owner
|
|
num_repos: 2
|
|
num_members: 1
|
|
|
|
-
|
|
id: 7
|
|
org_id: 3
|
|
lower_name: test_team
|
|
name: test_team
|
|
authorize: 2 # write
|
|
num_repos: 1
|
|
num_members: 1
|
|
|
|
-
|
|
id: 8
|
|
org_id: 17
|
|
lower_name: test_team
|
|
name: test_team
|
|
authorize: 2 # write
|
|
num_repos: 1
|
|
num_members: 1
|
|
|
|
-
|
|
id: 9
|
|
org_id: 17
|
|
lower_name: review_team
|
|
name: review_team
|
|
authorize: 1 # read
|
|
num_repos: 1
|
|
num_members: 1
|
|
|
|
-
|
|
id: 10
|
|
org_id: 25
|
|
lower_name: notowners
|
|
name: NotOwners
|
|
authorize: 1 # owner
|
|
num_repos: 0
|
|
num_members: 1
|