Microservices - Authentication and Authorization
Consider this RBAC microservice snippet:
What will be printed?
role_permissions = {"editor": ["edit", "publish"], "viewer": ["view"]}
user_roles = ["viewer", "editor"]
print(any("publish" in role_permissions.get(role, []) for role in user_roles))What will be printed?
