Skip to content

Commit

Permalink
batman: build_credentials_authz fix
Browse files Browse the repository at this point in the history
  • Loading branch information
byewokko committed Feb 14, 2023
1 parent 276d174 commit baa0baf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion seacatauth/batman/elk.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ async def sync(self, cred: dict, elk_resources: typing.Iterable):
)

# Get authz dict
authz = await build_credentials_authz(cred["_id"], self.TenantService, self.RoleService)
authz = await build_credentials_authz(self.TenantService, self.RoleService, cred["_id"])

# ELK roles from SCA resources
# Use only global "*" roles for now
Expand Down
2 changes: 1 addition & 1 deletion seacatauth/batman/grafana.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def sync(self, cred: dict):
return

# Get authz dict
authz = await build_credentials_authz(cred["_id"], self.TenantService, self.RoleService)
authz = await build_credentials_authz(self.TenantService, self.RoleService, cred["_id"])

# Grafana roles from SCA resources
# Use only global "*" roles for now
Expand Down

0 comments on commit baa0baf

Please sign in to comment.