Team-based authorization
This commit is contained in:
parent
b91ee462b8
commit
2eb472cc20
1 changed files with 12 additions and 12 deletions
|
@ -119,17 +119,17 @@ def fetch_authorization(environment: str):
|
|||
roleMatchers=file_based_group_username_role_matchers,
|
||||
)
|
||||
|
||||
# my_authz = buildbot.plugins.util.Authz(
|
||||
# allowRules=[
|
||||
# buildbot.plugins.util.AnyControlEndpointMatcher(
|
||||
# role="Developers"
|
||||
# ), # Organization teams
|
||||
# ],
|
||||
# roleMatchers=[
|
||||
# buildbot.plugins.util.RolesFromGroups(
|
||||
# groupPrefix="test-org/"
|
||||
# ) # Gitea organization
|
||||
# ],
|
||||
# )
|
||||
my_authz = buildbot.plugins.util.Authz(
|
||||
allowRules=[
|
||||
buildbot.plugins.util.AnyControlEndpointMatcher(
|
||||
role="Developers"
|
||||
), # Organization teams
|
||||
],
|
||||
roleMatchers=[
|
||||
buildbot.plugins.util.RolesFromGroups(
|
||||
groupPrefix="test-org/"
|
||||
) # Gitea organization
|
||||
],
|
||||
)
|
||||
|
||||
return my_authz
|
||||
|
|
Loading…
Reference in a new issue