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,
|
roleMatchers=file_based_group_username_role_matchers,
|
||||||
)
|
)
|
||||||
|
|
||||||
# my_authz = buildbot.plugins.util.Authz(
|
my_authz = buildbot.plugins.util.Authz(
|
||||||
# allowRules=[
|
allowRules=[
|
||||||
# buildbot.plugins.util.AnyControlEndpointMatcher(
|
buildbot.plugins.util.AnyControlEndpointMatcher(
|
||||||
# role="Developers"
|
role="Developers"
|
||||||
# ), # Organization teams
|
), # Organization teams
|
||||||
# ],
|
],
|
||||||
# roleMatchers=[
|
roleMatchers=[
|
||||||
# buildbot.plugins.util.RolesFromGroups(
|
buildbot.plugins.util.RolesFromGroups(
|
||||||
# groupPrefix="test-org/"
|
groupPrefix="test-org/"
|
||||||
# ) # Gitea organization
|
) # Gitea organization
|
||||||
# ],
|
],
|
||||||
# )
|
)
|
||||||
|
|
||||||
return my_authz
|
return my_authz
|
||||||
|
|
Loading…
Reference in a new issue