Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Commit e8b47a9

Browse files
committed
Customer roles
1 parent 1ff7564 commit e8b47a9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/lib/utils/roleChecker.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,17 @@ export const SITE_MAP: Record<string, PageRoleConfig> = {
198198
// ── Customers ───────────────────────────────────────────
199199
"/customers/individual": {
200200
required: [{ role: "CanGetCustomersAtOneBank", bankScoped: true }],
201+
optional: [
202+
{ role: "CanCreateCustomerAtOneBank", bankScoped: true },
203+
{ role: "CanUpdateCustomerIdentity", bankScoped: true },
204+
],
201205
},
202206
"/customers/corporate": {
203207
required: [{ role: "CanGetCustomersAtOneBank", bankScoped: true }],
208+
optional: [
209+
{ role: "CanCreateCustomerAtOneBank", bankScoped: true },
210+
{ role: "CanUpdateCustomerIdentity", bankScoped: true },
211+
],
204212
},
205213

206214
// ── Users ─────────────────────────────────────────────

0 commit comments

Comments
 (0)