ACC · Permissions and row-level security
Roles sit on a membership, each for one pool or for all pools, and give their permissions at that pool only. This page holds the permission catalogue, what each system role holds, and how row-level security applies the result on every query. Part of Access, code ACC.
Not yet a rule
Section titled “Not yet a rule”These questions are open in #72. Each gets a rule with a new ID once it is answered.
- After cutover, not rules yet (D63, D64): the payment and collection roles, which finance, admin and admin_fleet stand in for until then; and anything for training (a trainer role, training:write), which waits for the training flow (DRV-19).
- What transaction:write guards (#278): the transaction list's page is gated by transaction:read (R-ACC-80), but no rule says what the transaction list lets a user do with transaction:write, nor how it relates to payment:write (R-MON-30). Asked of the CTO on #328.
Answered questions
Section titled “Answered questions”- DOC-Q12 (who reads the permission catalogue): every signed-in user. A new rule, R-ACC-33.
- Who sees NIK, phone, company_amount and margin (OQ9, #35): D31.
R-ACC-01 · Every table in the public schema has row-level security on
Section titled “R-ACC-01 · Every table in the public schema has row-level security on”- Status: built
- Example: given the migrations have run, when the catalog lists public tables with row-level security off, then the list is empty.
- Refusal: none: this describes the schema; the RLS migration fails if a table lacks it.
- Who: every table.
- Source: D9 (P7); [Ref] Roles, The RLS pattern.
R-ACC-02 · Signed-out requests (anon) can't read or write any table
Section titled “R-ACC-02 · Signed-out requests (anon) can't read or write any table”- Status: built
- Example: given a request with only the publishable key, when it reads drivers, then no row comes back, and an insert is refused.
- Refusal: none: hidden on read; insufficient_privilege (42501) on write.
- Who: the anon role.
- Source: [Ref] Roles, The RLS pattern; the M0 acceptance checks.
R-ACC-03 · A role held at a pool gives its permissions at that pool only
Section titled “R-ACC-03 · A role held at a pool gives its permissions at that pool only”- Status: built
- Example: given Deka holds checker at pool PML only, when Deka reads inspections, then PML's come back and pool SBY's don't.
- Refusal: none: hidden.
- Who: every member with a pool-scoped role.
- Source: [Ref] Roles, How one question is answered.
R-ACC-04 · Every role and override names a pool; a member holds nothing at a pool no role or grant names
Section titled “R-ACC-04 · Every role and override names a pool; a member holds nothing at a pool no role or grant names”- Status: built
- Example: given Rina holds finance at PML only, when the organization opens pool SBY, then Rina has nothing at SBY until a role there is granted; a role or override saved with no pool is refused.
- Refusal: none: not_null_violation (23502) on member_roles.pool_id and member_permission_overrides.pool_id.
- Who: every writer of member roles and overrides; in the app, grant_role() (R-ACC-108) and set_override() (R-ACC-125) take the pool as an argument. super_admin gets new pools by R-ACC-47.
- Source: #144 (R-ACC-04: every user must have a pool; zuki's answer 6: a new pool needs fresh grants). Replaces "no pool means every pool".
R-ACC-05 · A grant override gives its permission even when no role includes it
Section titled “R-ACC-05 · A grant override gives its permission even when no role includes it”- Status: built
- Example: given a satpam with a grant override for vehicle:read at PML, when they read vehicles, then PML's cars come back.
- Refusal: none.
- Who: every member with a grant override.
- Source: [Ref] Roles, How one question is answered.
R-ACC-06 · A deny override removes its permission, whatever roles and grants give
Section titled “R-ACC-06 · A deny override removes its permission, whatever roles and grants give”- Status: built
- Example: given an admin with a deny override for payment:read at PML, when they read payments, then no payment of a PML driver comes back, though their role includes payment:read.
- Refusal: none: hidden.
- Who: every member with a deny override.
- Source: [Ref] Roles (denies always win); the M0 acceptance checks.
R-ACC-07 · A suspended membership gives no permissions
Section titled “R-ACC-07 · A suspended membership gives no permissions”- Status: built
- Example: given Deka's membership is suspended, when Deka reads vehicles, then no row comes back, whatever roles the membership holds.
- Refusal: none: hidden.
- Who: every member whose membership is suspended.
- Source: [Ref] Roles, The RLS pattern (active memberships only).
R-ACC-09 · A pool-scoped row is visible only to users holding one of its table's read permissions at that row's pool
Section titled “R-ACC-09 · A pool-scoped row is visible only to users holding one of its table's read permissions at that row's pool”- Status: built
- Example: given a work order at PML, when a maintenance user scoped to SBY reads work orders, then it doesn't come back; a maintenance user scoped to PML sees it.
- Refusal: none: hidden.
- Who: every member. Each table's read permissions are on its domain's page.
- Source: [Ref] Roles, The RLS pattern and policy matrix; the M0 acceptance checks.
R-ACC-10 · Inserting or updating a pool-scoped row needs its table's write permission at the row's pool, both before and after the change
Section titled “R-ACC-10 · Inserting or updating a pool-scoped row needs its table's write permission at the row's pool, both before and after the change”- Status: built
- Example: given an admin_fleet scoped to PML, when they move a car's home pool to SBY by update, then it is refused, because they hold vehicle:write at PML only.
- Refusal: none: insufficient_privilege (42501) on the new values; no effect when the old row isn't writable.
- Who: every member. Each table's write permissions are on its domain's page.
- Source: [Ref] Roles, The RLS pattern (using and with check).
R-ACC-11 · A child row (photo, item, event) is scoped by its parent's pool
Section titled “R-ACC-11 · A child row (photo, item, event) is scoped by its parent's pool”- Status: built
- Example: given an inspection at PML, when a checker scoped to SBY reads inspection_photos, then that inspection's photos don't come back.
- Refusal: none: hidden.
- Who: every member.
- Source: [Ref] Roles, The RLS pattern (child tables and their resolver helpers).
R-ACC-12 · Every view applies the reader's own row-level security
Section titled “R-ACC-12 · Every view applies the reader's own row-level security”- Status: built
- Example: given a finance user scoped to PML, when they read v_driver_balance, then only PML drivers' balances come back.
- Refusal: none: hidden.
- Who: every view (security_invoker).
- Source: [Ref] Database rules and conventions, Views.
R-ACC-24 · A permission code has the form feature:action, in lower case
Section titled “R-ACC-24 · A permission code has the form feature:action, in lower case”- Status: built
- Example: given the permissions table, when a code Vehicle:Read or vehicle-read is saved, then it is refused; vehicle:read is accepted.
- Refusal: none: check_violation (23514).
- Who: every writer.
- Source: [Ref] Data model V13: permissions.
R-ACC-25 · The permission catalogue holds exactly the 45 codes listed in [Ref] Roles
Section titled “R-ACC-25 · The permission catalogue holds exactly the 45 codes listed in [Ref] Roles”- Status: planned
- Example: given the seed has run, when the permission codes are listed, then there are 45 and they match the catalogue, from dashboard:read to transfer:approve.
- Refusal: none: this describes the seed.
- Who: the seed.
- Source: [Ref] Roles, Full permission catalogue.
R-ACC-26 · App users can't change the permission catalogue
Section titled “R-ACC-26 · App users can't change the permission catalogue”- Status: built
- Example: given a super_admin, when they add a permission code, then nothing is saved.
- Refusal: none: insufficient_privilege (42501) on insert; no effect on update or delete.
- Who: every app user. Only a migration changes it.
- Source: [Ref] Data model V13, lookup tables (permissions: nobody, migration only).
R-ACC-27 · The 11 system roles hold exactly their v1 permissions, renamed: 193 grants in all
Section titled “R-ACC-27 · The 11 system roles hold exactly their v1 permissions, renamed: 193 grants in all”- Status: retired (replaced by R-ACC-36, which R-ACC-85 replaces in turn, and R-ACC-87 after it)
- Example: given the seed has run, when satpam's permissions are listed, then they are exactly audit_log:read and gate:read.
- Refusal: none: this describes the seed.
- Who: the seed.
- Source: [Ref] Roles, Permissions per role; the M0 acceptance checks. Retired in #278: D31 had already replaced its 193 with R-ACC-36's count, and this page still showed it as planned.
R-ACC-28 · my_permissions() returns one row per pool and permission the caller holds after roles, grants and denies
Section titled “R-ACC-28 · my_permissions() returns one row per pool and permission the caller holds after roles, grants and denies”- Status: built
- Example: given Deka holds checker at PML and a deny for inspection:handover at PML, when they call my_permissions(), then the PML rows include inspection:read and leave out inspection:handover.
- Refusal: none.
- Who: every signed-in user.
- Source: [Ref] Roles; [Runbook] v2 backend, M0 Interface.
R-ACC-29 · Signed-out callers can't run my_permissions()
Section titled “R-ACC-29 · Signed-out callers can't run my_permissions()”- Status: built
- Example: given a request with only the publishable key, when it calls rpc('my_permissions'), then it is refused.
- Refusal: none: insufficient_privilege (42501), as anon may not execute the function.
- Who: the anon role.
- Source: [Runbook] v2 backend, M0 Interface.
R-ACC-33 · Without user:read, a signed-in user reads only the permissions they hold
Section titled “R-ACC-33 · Without user:read, a signed-in user reads only the permissions they hold”- Status: built
- Example: given a satpam, when they read permissions, then only audit_log:read and gate:read come back, the ones their roles give them; a super_admin sees the whole catalogue.
- Refusal: none: hidden.
- Who: every signed-in user; super_admin holds user:read and reads the whole catalogue.
- Source: #144 (R-ACC-33: only their own roles and permissions). Replaces "every signed-in user reads the catalogue" (DOC-Q12).
R-ACC-47 · When a pool is created, every super_admin of the organization is granted the super_admin role at it
Section titled “R-ACC-47 · When a pool is created, every super_admin of the organization is granted the super_admin role at it”- Status: built
- Example: given Rina is the organization's super_admin, when pool SBY is created, then Rina holds super_admin at SBY at once; an admin holds nothing there until granted.
- Refusal: none.
- Who: every super_admin of the organization. The grant ends none of their sessions (R-ACC-55).
- Source: #144 (zuki's answer 6: super_admin gets every new pool automatically).
R-ACC-49 · A user's permissions are read from the database on every query, never from the login token
Section titled “R-ACC-49 · A user's permissions are read from the database on every query, never from the login token”- Status: built
- Example: given an admin removes Deka's checker role, when Deka's next query runs, then it returns no inspections, even before their token expires.
- Refusal: none.
- Who: every member.
- Source: [Ref] Roles; D13; D37 ("permissions are still never read from the token"). The part of the old R-ACC-08 that stays true.
R-ACC-63 · driver:reject is in the permission catalogue, held by background_check, admin_driver, admin and super_admin
Section titled “R-ACC-63 · driver:reject is in the permission catalogue, held by background_check, admin_driver, admin and super_admin”- Status: planned
- Example: given the seed with M3's permissions, when background_check's permissions are listed, then they include driver:reject; checker's don't.
- Refusal: none: this describes the seed.
- Who: the seed. Rejecting a driver with it is R-BC-11.
- Source: D63 (#157: the Screening Team and the Driver Team). Built in M3; R-ACC-86 and R-ACC-87's counts change then, under new IDs.
R-ACC-64 · driver:blacklist is in the permission catalogue, held by admin_driver, admin and super_admin
Section titled “R-ACC-64 · driver:blacklist is in the permission catalogue, held by admin_driver, admin and super_admin”- Status: planned
- Example: given the seed with M3's permissions, when admin_driver's permissions are listed, then they include driver:blacklist; background_check's don't.
- Refusal: none: this describes the seed.
- Who: the seed. What a blacklist does is R-DRV-24, R-QUE-08 and R-RNT-18; setting and lifting one need driver:blacklist (R-DRV-34), and a repossession reaching the limit sets one by itself (R-DRV-30).
- Source: D63 (#157: the Driver Team, through admin_driver). Built in M3.
R-ACC-65 · preparation:approve is in the permission catalogue, held by admin_fleet, admin and super_admin, and is delegable (D97)
Section titled “R-ACC-65 · preparation:approve is in the permission catalogue, held by admin_fleet, admin and super_admin, and is delegable (D97)”- Status: planned
- Example: given the seed with M5's permissions, when admin_fleet's permissions are listed, then they include preparation:approve; checker's and maintenance's don't; the catalogue marks it delegable (R-ACC-229), so admin_fleet can delegate it (R-ACC-234).
- Refusal: none: this describes the seed.
- Who: the seed. It assigns a work order's PIC and passes the Preparation Leader's check (R-WO-08).
- Source: D63; D94 (admin_fleet, v1's Admin vehicle, leads the Preparation Team; no preparation_leader role, #587); D97 (preparation:approve is delegable); General Flow VEH-18, VEH-24, VEH-26, VEH-27. Built in M5.
R-ACC-66 · repo:read and repo:write are in the permission catalogue, held by repo, admin and super_admin
Section titled “R-ACC-66 · repo:read and repo:write are in the permission catalogue, held by repo, admin and super_admin”- Status: planned
- Example: given the seed with M5's permissions, when repo's permissions are listed, then they include repo:read and repo:write; finance's don't.
- Refusal: none: this describes the seed.
- Who: the seed. The collection role that would also hold repo:write is after cutover.
- Source: D63; General Flow REP-01, VEH-14. Built in M5.
R-ACC-67 · The system role preparation_leader holds the Preparation Team's permissions and preparation:approve
Section titled “R-ACC-67 · The system role preparation_leader holds the Preparation Team's permissions and preparation:approve”- Status: retired (no preparation_leader role: the Preparation Team is the checker team, led by admin_fleet, which holds preparation:approve under R-ACC-65; D94)
- Example: given the seed with M5's roles, when preparation_leader's permissions are listed, then they are those of the Preparation Team's roles, checker and maintenance, together with preparation:approve.
- Refusal: none: this describes the seed.
- Who: the seed; every organization's copy (R-TEN-03), locked like the other system roles (R-ACC-21).
- Source: D63; #157 (the Preparation Team is checker and maintenance). Built in M5. Confirmed by zuki on #180 (2026-10-20). Retired before it was built: D94, #587.
R-ACC-68 · The system role repo holds vehicle:read, driver:read, inspection:write, repo:read and repo:write
Section titled “R-ACC-68 · The system role repo holds vehicle:read, driver:read, inspection:write, repo:read and repo:write”- Status: planned
- Example: given the seed with M5's roles, when repo's permissions are listed, then they are exactly those five.
- Refusal: none: this describes the seed.
- Who: the seed; every organization's copy, locked (R-ACC-21).
- Source: D63; #157 (the Repo Team records the recovery). Built in M5.
R-ACC-69 · admin_fleet holds debt_letter:write
Section titled “R-ACC-69 · admin_fleet holds debt_letter:write”- Status: planned
- Example: given the seed with M6's grants, when admin_fleet's permissions are listed, then they include debt_letter:write, so Vehicle Management can execute a surat hutang and record whether the rental continues (R-COL-07).
- Refusal: none: this describes the seed.
- Who: the seed.
- Source: D63; D45; General Flow COL-13, COL-14. Built with M6's letters; R-ACC-87's count changes then, under a new ID.
R-ACC-72 · App users and jobs reach a public table or view only through the grants written beside its policies, never through Supabase's default grants
Section titled “R-ACC-72 · App users and jobs reach a public table or view only through the grants written beside its policies, never through Supabase's default grants”- Status: planned
- Example: given the migrations have run on the local stack, when the grants on public's tables and views are listed, then authenticated and service_role hold on each exactly the privileges the policy generator writes beside the policies (for authenticated: select, insert, update and delete on vehicles; select only on audit_log; nothing on document_sequences; no company_amount or margin on charges, R-MON-39; select only on each view, such as v_driver_balance), and anon holds none (R-ACC-02). A table added with policies but no grant beside them is refused to a signed-in user with 42501 permission denied, on the local stack as on a hosted project.
- Refusal: none: insufficient_privilege (42501) on a table, a view or a privilege not granted.
- Who: the authenticated role (app users) and the service_role role (jobs, Edge Functions, the migration), on every public table, each of which has row-level security on (R-ACC-01), and on every public view, each of which is security_invoker, so its base tables' policies still apply. No grant covers all tables at once, so a table whose row-level security were off would stay unreachable.
- Source: #247 (from 2026-10-30, Supabase stops granting new public tables to anon, authenticated and service_role by default; Opleet rebuilds every table on each staging rebuild and rehearsal, D11, D36, so every table is new). Default grants are revoked in the migration, so every environment behaves alike. R-ACC-01 and R-ACC-02 are unchanged.
R-ACC-77 · collection:read is in the permission catalogue, held by super_admin, admin, finance and viewer
Section titled “R-ACC-77 · collection:read is in the permission catalogue, held by super_admin, admin, finance and viewer”- Status: built
- Example: given the seed with the data phase's codes, when viewer's permissions are listed, then they include collection:read; checker's, admin_driver's and satpam's don't. A v1 login granted
collection:readgets a grant override of collection:read, and one denied it gets a deny override (R-ACC-71). - Refusal: none: this describes the seed.
- Who: the seed; every organization's copy of the system roles, locked (R-ACC-21). The four roles are the ones whose v1 role held collection:read by default (R-ACC-87).
- Source: D75 (v1 is still developing, so the data phase builds the v2 codes for what v1 adds); zuki on #328 (2026-10-27: match v1 one to one) and v1's role defaults on #278 (2026-10-27, 03:44). Built in the data phase; the catalogue and grant counts are R-ACC-86 and R-ACC-87.
R-ACC-78 · daily_rental:read is in the permission catalogue, held by super_admin, admin, finance and viewer
Section titled “R-ACC-78 · daily_rental:read is in the permission catalogue, held by super_admin, admin, finance and viewer”- Status: built
- Example: given the seed with the data phase's codes, when finance's permissions are listed, then they include daily_rental:read; checker's don't. A v1 login denied
rental:readgets a deny override of daily_rental:read, and keeps payment:read. - Refusal: none: this describes the seed.
- Who: the seed; every organization's copy of the system roles, locked (R-ACC-21). The four roles are the ones whose v1 role held rental:read by default.
- Source: as R-ACC-77. daily_rental is v1's rental renamed, to say it is the Rental Harian page and not a rental contract.
R-ACC-79 · transaction:read is in the permission catalogue, held by super_admin, admin, finance and viewer; transaction:write by super_admin, admin and finance
Section titled “R-ACC-79 · transaction:read is in the permission catalogue, held by super_admin, admin, finance and viewer; transaction:write by super_admin, admin and finance”- Status: built
- Example: given the seed with the data phase's codes, when viewer's permissions are listed, then they include transaction:read and not transaction:write; finance's include both; checker's include neither. A v1 finance login with
txlist:readdenied gets a deny override of transaction:read, and payment:read is untouched. - Refusal: none: this describes the seed.
- Who: the seed; every organization's copy of the system roles, locked (R-ACC-21). The roles are the ones whose v1 role held txlist:read or txlist:write by default.
- Source: as R-ACC-77.
R-ACC-80 · The Collection, Rental Harian and transaction-list pages each check their own code, so a deny of one hides that page and leaves the other payment pages
Section titled “R-ACC-80 · The Collection, Rental Harian and transaction-list pages each check their own code, so a deny of one hides that page and leaves the other payment pages”- Status: planned
- Example: given a finance user who holds payment:read and a deny override of transaction:read, when they open the payment pages, then the transaction list is hidden from their menu and refused by address, and Pembayaran and ETLE still open. The deny gates the page, as v1's did: payment:read still lets them read the same charges and payments there (R-MON-29). Collection needs collection:read and Rental Harian needs daily_rental:read in the same way.
- Refusal: none: a page outside the menu, opened by its address, shows the refusal page (R-APP-25).
- Who: the Collection, Rental Harian and transaction-list pages, for every member. Built in the data phase (the codes) and the money module (the pages). Every system role that holds one of the three codes also holds payment:read, so the page always has rows to show (R-MON-29).
- Source: D75; zuki on #328 (2026-10-27); R-APP-25 (each menu item opens with one permission held at the current pool).
R-ACC-84 · The permission catalogue holds exactly 50 codes: R-ACC-35's 46, with collection:read, daily_rental:read, transaction:read and transaction:write in
Section titled “R-ACC-84 · The permission catalogue holds exactly 50 codes: R-ACC-35's 46, with collection:read, daily_rental:read, transaction:read and transaction:write in”- Status: retired (replaced by R-ACC-86, which adds opname:read and opname:write: 52 codes)
- Example: given the seed has run, when the permission codes are listed, then there are 50, including payment:margin, gate:write, collection:read, daily_rental:read, transaction:read and transaction:write, and not vehicle:delete.
- Refusal: none: this describes the seed.
- Who: the seed.
- Source: D75; R-ACC-77 to R-ACC-79; #278. Replaces R-ACC-35. driver:reject and the other codes of R-ACC-63 to R-ACC-66 would add more.
R-ACC-85 · The 11 system roles hold their v1 permissions, renamed, with payment:margin, gate:write and the codes of R-ACC-77 to R-ACC-79 where given, and no vehicle:delete: 213 grants in all
Section titled “R-ACC-85 · The 11 system roles hold their v1 permissions, renamed, with payment:margin, gate:write and the codes of R-ACC-77 to R-ACC-79 where given, and no vehicle:delete: 213 grants in all”- Status: retired (replaced by R-ACC-87, which adds the nine grants of R-ACC-88 and R-ACC-89: 222 in all)
- Example: given the seed has run, when satpam's permissions are listed, then they are still audit_log:read, gate:read and gate:write; finance's include collection:read, daily_rental:read, transaction:read and transaction:write; viewer's include collection:read, daily_rental:read and transaction:read; super_admin's don't include vehicle:delete. The roles hold 213 grants in all, 15 more than R-ACC-36's 198: four roles hold collection:read, four daily_rental:read, four transaction:read and three transaction:write.
- 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 and #144 (D39) for the 198; R-ACC-77 to R-ACC-79 for the 15 more (#278). Replaces R-ACC-36, and through it R-ACC-27.
R-ACC-86 · The permission catalogue holds exactly 52 codes: R-ACC-84's 50, with opname:read and opname:write in
Section titled “R-ACC-86 · The permission catalogue holds exactly 52 codes: R-ACC-84's 50, with opname:read and opname:write in”- Status: retired (replaced by R-ACC-225: gate:approve goes and the four gate approvals come in, 55 codes; D96)
- Example: given the seed has run, when the permission codes are listed, then there are 52, including opname:read and opname:write, payment:margin, gate:write, collection:read, daily_rental:read, transaction:read and transaction:write, and not vehicle:delete.
- Refusal: none: this describes the seed.
- Who: the seed.
- Source: D75; #320 (Stock Opname gets opname:read and opname:write); #321. Replaces R-ACC-84. The codes of R-ACC-63 to R-ACC-66 would add more.
R-ACC-87 · The 11 system roles hold their v1 permissions, renamed, with the codes of R-ACC-77 to R-ACC-79, R-ACC-88 and R-ACC-89 where given: 222 grants in all
Section titled “R-ACC-87 · The 11 system roles hold their v1 permissions, renamed, with the codes of R-ACC-77 to R-ACC-79, R-ACC-88 and R-ACC-89 where given: 222 grants in all”- Status: retired (replaced by R-ACC-226: the gate approvals and gate:read change, 229 grants; D96)
- Example: given the seed has run, when checker's permissions are listed, then they include opname:read and opname:write; viewer's include opname:read and not opname:write. The roles hold 222 grants in all, 9 more than R-ACC-85's 213: five roles hold opname:read and four hold opname:write. The other grants are as in R-ACC-85, and no role holds vehicle:delete.
- Refusal: none: this describes the seed.
- Who: the seed.
- Source: as R-ACC-85, and R-ACC-88 and R-ACC-89 for the 9 more. Replaces R-ACC-85, and through it R-ACC-36 and R-ACC-27.
R-ACC-88 · super_admin, admin, admin_fleet, checker and viewer hold opname:read
Section titled “R-ACC-88 · super_admin, admin, admin_fleet, checker and viewer hold opname:read”- Status: planned
- Example: given the seed has run, when each system role's permissions are listed, then those five include opname:read and the other six don't.
- Refusal: none: this describes the seed.
- Who: the seed.
- Source: D75; BE's role defaults on #321 (the roles that see Stock Opname in v1). Used by R-OPN-09.
R-ACC-89 · super_admin, admin, admin_fleet and checker hold opname:write
Section titled “R-ACC-89 · super_admin, admin, admin_fleet and checker hold opname:write”- Status: planned
- Example: given the seed has run, when each system role's permissions are listed, then those four include opname:write and the other seven don't; viewer holds opname:read and not opname:write.
- Refusal: none: this describes the seed.
- Who: the seed.
- Source: as R-ACC-88. Used by R-OPN-10. v1's logins that deny opname:write keep the deny (R-ACC-71).
R-ACC-223 · gate_debt:approve, gate_service:approve, gate_checkpoint:approve and gate_team:approve are in the permission catalogue: finance holds gate_debt:approve, admin_fleet the other three, admin and super_admin all four
Section titled “R-ACC-223 · gate_debt:approve, gate_service:approve, gate_checkpoint:approve and gate_team:approve are in the permission catalogue: finance holds gate_debt:approve, admin_fleet the other three, admin and super_admin all four”- Status: built
- Example: given the seed has run, when each system role's permissions are listed, then finance holds gate_debt:approve only of the four, admin_fleet holds gate_service:approve, gate_checkpoint:approve and gate_team:approve, and admin and super_admin hold all four; admin_driver, asuransi, checker and maintenance, which held gate:approve, hold none, and gate:approve is not in the catalogue.
- Refusal: none: this describes the seed.
- Who: the seed. R-GATE-20 to R-GATE-23 read them; a leader shares one by delegating it (R-ACC-229, R-ACC-234).
- Source: D96; #593 (each aspect gets its own permission; gate:approve goes).
R-ACC-224 · finance and admin_fleet hold gate:read
Section titled “R-ACC-224 · finance and admin_fleet hold gate:read”- Status: built
- Example: given the seed has run, when finance's and admin_fleet's permissions are listed, then both include gate:read, so each reads the passes it approves at its pool (R-GATE-03).
- Refusal: none: this describes the seed.
- Who: the seed.
- Source: zuki, 2026-11-16, in the session on #584 (finance and admin_fleet are granted gate:read; no new read rule); D96; #593.
R-ACC-225 · The permission catalogue holds exactly 55 codes: R-ACC-86's 52, without gate:approve and with the four gate approvals
Section titled “R-ACC-225 · The permission catalogue holds exactly 55 codes: R-ACC-86's 52, without gate:approve and with the four gate approvals”- Status: built
- Example: given the seed has run, when the permission codes are listed, then there are 55, including gate_debt:approve, gate_service:approve, gate_checkpoint:approve, gate_team:approve, gate:read, gate:write, opname:read and opname:write, and not gate:approve or vehicle:delete.
- Refusal: none: this describes the seed.
- Who: the seed.
- Source: D96; #593. Replaces R-ACC-86. preparation:approve (R-ACC-65) and the other codes of R-ACC-63 to R-ACC-66 would add more in M5.
R-ACC-226 · The 11 system roles hold their v1 permissions, renamed, with the codes of R-ACC-77 to R-ACC-79, R-ACC-88, R-ACC-89, R-ACC-223 and R-ACC-224 where given, and no gate:approve: 229 grants in all
Section titled “R-ACC-226 · The 11 system roles hold their v1 permissions, renamed, with the codes of R-ACC-77 to R-ACC-79, R-ACC-88, R-ACC-89, R-ACC-223 and R-ACC-224 where given, and no gate:approve: 229 grants in all”- Status: built
- Example: given the seed has run, when the grants are counted, then there are 229: R-ACC-87's 222, less the 7 grants of gate:approve (super_admin, admin, admin_driver, finance, maintenance, asuransi, checker), with the 12 of R-ACC-223 and the 2 of R-ACC-224. satpam still holds exactly audit_log:read, gate:read and gate:write.
- Refusal: none: this describes the seed.
- Who: the seed.
- Source: as R-ACC-87; D96; #593. Replaces R-ACC-87, and through it R-ACC-85, R-ACC-36 and R-ACC-27. BE checks the total against the seed.
R-ACC-228 · Users & roles shows each of the four gate approvals with its own label, naming its aspect
Section titled “R-ACC-228 · Users & roles shows each of the four gate approvals with its own label, naming its aspect”- Status: built
- Example: given a super_admin opens a member's roles or overrides, when gate_debt:approve, gate_service:approve, gate_checkpoint:approve and gate_team:approve are listed, then each shows a label in the user's language that names debt, service, checkpoint or team use, never the code. The text is FE's copy.
- Refusal: none.
- Who: every reader of Users & roles.
- Source: D96; #593; the lead in the session on #584, 2026-11-16 (each has a label).