yumoqing 67687883ff fix: RBAC crash when cache disabled - return roles directly from get_userroles
When module_cache.rbac=false in config.json, LRUCache.get() always returns
None and LRUCache.set() is a no-op. This caused get_userroles() to store
roles into a disabled cache, then callers read back None, leading to
TypeError in check_roles_path() when iterating over None.

Fix: get_userroles() now returns the roles list directly. Callers use the
return value instead of relying solely on cache reads. Added safety
fallback to deny access if roles is somehow still None.
2026-05-29 22:43:39 +08:00
2026-03-25 14:14:47 +08:00
2026-05-22 17:21:00 +08:00
2025-07-16 14:19:12 +08:00
2025-07-16 14:19:12 +08:00
2025-07-16 14:19:12 +08:00
2025-07-16 14:19:12 +08:00
2026-04-16 14:36:29 +08:00

rbac

Description
No description provided
Readme 1 MiB
Languages
Python 88.5%
CSS 10.8%
Shell 0.7%