🔐
平台与管理

角色与权限

自定义角色与细粒度访问控制

概述

Roles & Permissions defines what each team member can see — teacher vs nurse vs driver vs accountant — using granular view/manage flags per module route.

核心能力

  • Built-in roles: owner, manager, supervisor, teacher, nurse, driver, accountant, parent, child
  • Custom roles with per-route view and manage permissions
  • Permissions enforced on API and UI navigation
  • Parent and child roles isolated from admin modules
  • Changes take effect on next login session

How it works in Larvera

Owner opens Roles, clones Teacher role, adds Library manage permission, assigns to staff — Sidebar and API immediately respect the new boundary.

Who uses this module