mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
Update the default RBAC solution (#593)
This commit is contained in:
@@ -77,7 +77,7 @@ class Settings(BaseSettings):
|
||||
JWT_USER_REDIS_EXPIRE_SECONDS: int = 60 * 60 * 24 * 7 # 7 天
|
||||
|
||||
# RBAC
|
||||
RBAC_ROLE_MENU_MODE: bool = False
|
||||
RBAC_ROLE_MENU_MODE: bool = True
|
||||
RBAC_ROLE_MENU_EXCLUDE: list[str] = [
|
||||
'sys:monitor:redis',
|
||||
'sys:monitor:server',
|
||||
|
||||
Reference in New Issue
Block a user