Microservices - Authentication and Authorization
Given this simplified RBAC check in a microservice:
def can_access(user_role, action):
permissions = {
"user": ["read"],
"admin": ["read", "write", "delete"]
}
return action in permissions.get(user_role, [])
print(can_access("user", "delete"))
What is the output?