-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Refactor Directive: Deprecating network_users
Context
We are refactoring our Multi-Tenancy & Role System. The term network_users is officially deprecated and must be replaced with Customer.
The Critical Shift
Historically, "Customer" was incorrectly treated as a "Level 100" operator. We are moving to a strict 11-role administrative hierarchy (Levels 0-80).
Customers are now defined as external subscribers (Internet/PPP/Hotspot/CableTV).
Customers do not have a hierarchical level and are removed from the administrative tree.
Objectives
Rename & Purge: * Replace all instances of
network_userswithCustomer(andnetwork_user_idwithcustomer_id) across the database schema, models, controllers, and API routes.Role Isolation: * Strip
Customerof all management capabilities.Ensure the
Customermodel does not inherit from administrative classes or traits (e.g.,HasPermissions,IsOperator).
Validation Logic: * Operators (Level 30) and Sub-Operators (Level 40) manage Customers as assets/subscribers, not as sub-admins.
Block all
Customeraccess to administrative dashboards and management API endpoints.The
rolestable must stop at Level 80 (Staff). Customers must be identified by atypeflag or a specificis_subscriberboolean rather than a level.