HF RL Explorer

role-based access control: fix bug

role-based access control: fix bug: a task in smol-software-harbor (Harbor dataset). A customer configured two roles that inherit from each other and our permission check crashed with RecursionError ( test cycle fails). permissions in rbac/check.py must tolerate cycles (each role is visited once)…

The task

A customer configured two roles that inherit from each other and our permission check crashed with `RecursionError` (`test_cycle` fails). `permissions` in `rbac/check.py` must tolerate cycles (each role is visited once). Fix it and run `python3 -m pytest -q`.

Part of efederici/smol-software-harbor.