Skip to content

Since D31 · margin, NIK and phone

D31 decided who sees margin, company amounts, NIK and phone (OQ9, #35). Its rules: #113, pull request #115.

These take effect when the audit is done. Until then the domain pages stay as written.

  • Access: R-ACC-25 (45 codes) is retired and replaced by R-ACC-35 (46 codes).
  • Access: R-ACC-27 (193 grants) is retired and replaced by R-ACC-36 (196 grants).
  • Money: R-MON-34 (payouts with payment:read) is retired and replaced by R-MON-40 (payouts also need payment:margin).
  • Access, Drivers: OQ9 leaves "Not yet a rule".

R-ACC-35 · The permission catalogue holds exactly 46 codes: [Ref] Roles' 45, with payment:margin and gate:write in and vehicle:delete out

Section titled “R-ACC-35 · The permission catalogue holds exactly 46 codes: [Ref] Roles' 45, with payment:margin and gate:write in and vehicle:delete out”
  • Status: retired (replaced by R-ACC-84, which adds the four codes of R-ACC-77 to R-ACC-79)
  • Example: given the seed has run, when the permission codes are listed, then there are 46, including payment:margin and gate:write, and not vehicle:delete.
  • Refusal: none: this describes the seed.
  • Who: the seed.
  • Source: [Ref] Roles, Full permission catalogue; D31 (payment:margin); D39 (vehicle:delete goes); #144 (gate:write). Replaces R-ACC-25. driver:reject (R-BC-11, draft) would add one more. Retired in #278: an exact count that grows is a new statement, as R-ACC-25 became R-ACC-35 (#210).

R-ACC-36 · The 11 system roles hold their v1 permissions, renamed, with payment:margin for super_admin, admin and finance, gate:write for super_admin, admin and satpam, and no vehicle:delete: 198 grants in all

Section titled “R-ACC-36 · The 11 system roles hold their v1 permissions, renamed, with payment:margin for super_admin, admin and finance, gate:write for super_admin, admin and satpam, and no vehicle:delete: 198 grants in all”
  • Status: retired (replaced by R-ACC-85, which adds the new codes' grants: 213 in all)
  • Example: given the seed has run, when satpam's permissions are listed, then they are audit_log:read, gate:read and gate:write; super_admin's don't include vehicle:delete.
  • Refusal: none: this describes the seed.
  • Who: the seed.
  • Source: [Ref] Roles, Permissions per role (193 grants), renamed by the v1 to v2 permission names; D31 (+3); #144 and D39 (+3 gate:write, −1 vehicle:delete). Replaces R-ACC-27. Retired in #278, as R-ACC-35 was.

R-DRV-18 · Every user who can read a driver sees the driver's NIK and phone in full

Section titled “R-DRV-18 · Every user who can read a driver sees the driver's NIK and phone in full”
  • Status: built
  • Example: given a checker at PML, who reads drivers through inspection:read, when they open a PML driver, then the driver's NIK and phone show in full, so they can check them against the driver's KTP photo. They stay masked in the audit log (R-AUD-06).
  • Refusal: none.
  • Who: every role that reads drivers (R-DRV-15).
  • Source: D31 (NIK and phone stay as in v1).

R-MON-39 · Reading margin and company_amount needs payment:margin at the driver's pool

Section titled “R-MON-39 · Reading margin and company_amount needs payment:margin at the driver's pool”
  • Status: built
  • Example: given a viewer at PML, who holds payment:read, when they read a PML rent charge, then its amount shows and its margin and company_amount are empty; a finance user at PML sees both.
  • Refusal: none: the figures are left empty.
  • Who: super_admin, admin and finance hold payment:margin.
  • Source: D31.

R-MON-40 · Reading payouts needs payment:read and payment:margin at any pool of the organization

Section titled “R-MON-40 · Reading payouts needs payment:read and payment:margin at any pool of the organization”
  • Status: built
  • Example: given a viewer, who holds payment:read only, when they read payouts, then nothing comes back; a finance user scoped to PML sees the organization's payouts.
  • Refusal: none: hidden.
  • Who: super_admin, admin and finance hold both.
  • Source: [Ref] Roles, policy matrix (rental companies, payouts); D31 (a payout's amounts are company_amount totals). Replaces R-MON-34.