feat: simplify RBAC roles and remove dev role switcher

- Simplified RBAC system to two roles: super_admin and user.
- Removed tenant_admin and rp_admin roles across backend and frontend.
- Removed Dev Role Switcher feature from adminfront.
- Updated all handlers, middlewares, and navigation to reflect the new role model.
- Fixed backend build errors and updated tests.
This commit is contained in:
chan committed 2026-06-02 18:29:18 +09:00
1 parent 57f05e2694
commit 802bf3e91d
32 files changed
+487 -938

No files matched your search

@@ -12,11 +12,7 @@ export type DeveloperAccessGateState = {
};
function isPrivilegedDeveloperRole(profileRole: string) {
return (
profileRole === "super_admin" ||
profileRole === "tenant_admin" ||
profileRole === "rp_admin"
);
return profileRole === "super_admin";
}
export function resolveDeveloperAccessGate(