Bỏ qua để đến nội dung

Zones (Admin)

Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.

Zones is an optional registry screen under /dashboard/zones for legacy or operational data. The current Nest admin JWT does not carry zone_id for scoping—admin access is driven by modules and explicit store_id / tenancy rules in services (see Admin panel overview and Tenancy — stores and outlets).


GoalsNon-goals
Model org/geographic splits for RBACReplace DNS or network zoning
Link zones to stores/vendorsDetail regional tax law


  1. Master admin maintains zone registry.
  2. Assign admins to zones via staff/role processes.
  3. Zone-scoped users operate stores/vendors inside zone only.

  • Changing zone boundaries is high impact—coordinate with data team and audit trails.

IDScenarioExpected
Z1List zonesCRUD per permissions
Z2Non–Master adminSees zones only when APIs allow
Z3Unauthorized access attempt403 / empty

PathPurpose
/dashboard/zonesZone list
/dashboard/zones/createCreate zone
/dashboard/zones/:idZone detail
/dashboard/zones/:id/editEdit zone

A zone is an organizational label in the legacy MySQL model (for example zones rows linked from stores.zone_id where present). The Nest admin JWT does not use zone_id for authorization—use modules and explicit store_id / service checks instead.

See Tenancy — stores and outlets for API behavior and Admin panel overview for modules and Master admin.

  • Search — debounced (400ms), 10 rows per page.
  • Actions — view (/dashboard/zones/:id), edit, delete (with i18n confirmation).
  • Delete — calls deleteAdminZone and refreshes the list.