Skip to content

ACC · Members: suspend, reinstate, remove

A holder of user:write can suspend, reinstate or remove another member, and revoke or restore an invitation, from /users. This page holds those functions, the list's filters and menus, the member's page and the Undangan tab. Part of Access, code ACC.

  • Bringing back a removed member (#630, D101, D104): nothing restores a deleted membership (R-ACC-189); an admin invites the member's email again, which reaches a login with no membership in any organization (R-ACC-92, R-ACC-265), and accepting makes a new membership (R-ACC-277). Pulihkan on a voided invitation to such a login sends a fresh sign-in link the same way, and restores nothing until it is accepted (R-ACC-286, #695).

R-ACC-187 · suspend_member() sets an active member of the caller's organization to suspended

Section titled “R-ACC-187 · suspend_member() sets an active member of the caller's organization to suspended”
  • Status: built
  • Example: given Deka is an active member holding checker at PML, when a super_admin with user:write at every active pool calls suspend_member() for Deka's membership, then its status is suspended, Deka keeps their roles, overrides and rental companies, holds nothing while suspended (R-ACC-07), and their sessions end (R-ACC-52).
  • Refusal: each has its own rule, checked in this order: profile.not_signed_in (42501) when no one is signed in, access.member_not_found (R-ACC-202), access.not_allowed (R-ACC-190), access.cannot_change_self (R-ACC-193), access.member_not_active (R-ACC-194), access.member_outside_scope (R-ACC-192), access.grant_not_held (R-ACC-191).
  • Who: holders of user:write at every active pool of the member's organization (super_admin among the system roles). One member per call.
  • Source: D48; D3; the lead in the session on #457 (the functions are the only path); zuki, 2026-11-13 (who may call it).

R-ACC-188 · reinstate_member() sets a suspended member of the caller's organization back to active, and ends no sessions

Section titled “R-ACC-188 · reinstate_member() sets a suspended member of the caller's organization back to active, and ends no sessions”
  • Status: built
  • Example: given Deka's membership is suspended and holds checker at PML, when a super_admin with user:write at every active pool calls reinstate_member() for it, then its status is active, Deka holds checker at PML again on their next query (R-ACC-49), and neither Deka's sessions nor their profile's time of last access change are touched.
  • Refusal: as R-ACC-187, in the same order, starting with profile.not_signed_in, with access.member_already_active (R-ACC-200) in place of access.member_not_active.
  • Who: holders of user:write at every active pool of the member's organization. The checks are suspend_member()'s (R-ACC-190 to R-ACC-193).
  • Source: D48 (only suspension ends sessions); the lead in the session on #457 (the same checks as suspend); R-ACC-52.

R-ACC-189 · remove_member() deletes a member's membership, with their roles, overrides and rental companies, and keeps their profile

Section titled “R-ACC-189 · remove_member() deletes a member's membership, with their roles, overrides and rental companies, and keeps their profile”
  • Status: built
  • Example: given Rina holds checker at A's PML with a deny of payment:read and a link to partner P, when A's super_admin with user:delete at every active pool calls remove_member() for Rina's membership in A, then that membership, its role, its override and its link are gone, Rina's sessions end (R-ACC-53), and Rina's profile and login stay, with no membership in any organization (R-ACC-38, D104). A suspended membership is removed the same way. Nothing restores the membership; for a new invitation to Rina's email, see R-ACC-92 and R-ACC-265.
  • Refusal: each has its own rule, checked in this order: profile.not_signed_in (42501) when no one is signed in, access.member_not_found (R-ACC-202), access.not_allowed (R-ACC-37), access.cannot_change_self (R-ACC-193), access.member_outside_scope (R-ACC-192), access.grant_not_held (R-ACC-191).
  • Who: holders of user:delete at every active pool of the member's organization (R-ACC-37). Past records keep naming Rina through their profile.
  • Source: D48; zuki, 2026-11-13 (a hard delete with cascade; the profile stays); D101 (removing stays a hard delete; a new invitation brings the member back).

R-ACC-190 · suspend_member() and reinstate_member() are refused to a caller without user:write at every active pool of the member's organization

Section titled “R-ACC-190 · suspend_member() and reinstate_member() are refused to a caller without user:write at every active pool of the member's organization”
  • Status: built
  • Example: given Rina holds user:write at PML and SBY and the organization's active pools are PML, SBY and JKT, when Rina suspends or reinstates Deka, then it is refused and Deka's status stays as it was; once Rina holds user:write at JKT too, the call goes through. A closed pool doesn't count, and an organization with no active pool refuses every call.
  • Refusal: access.not_allowed (42501), with organization_id and the pool_ids where the caller lacks user:write, as R-ACC-136.
  • Who: every caller of the two functions. remove_member() needs user:delete the same way (R-ACC-37).
  • Source: zuki, 2026-11-13, in the session on #457 (user:write at every active pool, as R-ACC-136).

R-ACC-191 · suspend_member(), reinstate_member() and remove_member() are refused when the member holds a permission the caller lacks at the same pool

Section titled “R-ACC-191 · suspend_member(), reinstate_member() and remove_member() are refused when the member holds a permission the caller lacks at the same pool”
  • Status: built
  • Example: given Rina holds user:write and user:delete at every active pool through an organization's own role that lacks payment:approve, and Deka holds finance, which includes payment:approve, at SBY, when Rina suspends, reinstates or removes Deka, then it is refused and Deka stays as they were; for Eko, who holds checker at PML, whose permissions Rina all holds there, the call goes through. A grant override counts as a permission the member holds, and a deny override takes its permission out. A suspended member's permissions are counted as if the membership were active.
  • Refusal: access.grant_not_held, with pool_id and the permission_codes the caller lacks there, for the first such pool by name, as R-ACC-50.
  • Who: every caller of the three functions, at every active pool where the member holds anything. A permission the member holds only at a closed pool isn't counted.
  • Source: zuki, 2026-11-13, in the session on #457 (the caller must hold every permission the member holds, R-ACC-50 style); R-ACC-111.

R-ACC-192 · suspend_member(), reinstate_member() and remove_member() are refused when the caller lacks the flag and the member has the flag or a rental company outside the caller's own

Section titled “R-ACC-192 · suspend_member(), reinstate_member() and remove_member() are refused when the caller lacks the flag and the member has the flag or a rental company outside the caller's own”
  • Status: built
  • Example: given Deka holds user:write and user:delete at every active pool and is limited to partners A and B, when Deka suspends Rina, who is limited to A, or Eko, whose list is empty, then it goes through. When Deka suspends, reinstates or removes Ika, who is linked to A and C, or Sari, who has the flag, then it is refused and nothing changes.
  • Refusal: access.member_outside_scope (42501), with membership_id and the member's rental_company_ids outside the caller's set, as R-ACC-165.
  • Who: every caller of the three functions without the flag in the member's organization, as R-ACC-165 for roles.
  • Source: the lead in the session on #457; D99, D100.

R-ACC-193 · suspend_member(), reinstate_member() and remove_member() are refused on the caller's own membership

Section titled “R-ACC-193 · suspend_member(), reinstate_member() and remove_member() are refused on the caller's own membership”
  • Status: built
  • Example: given Rina is a super_admin, when Rina calls suspend_member() or remove_member() for their own membership, then it is refused and Rina stays an active member; another super_admin's call for Rina goes through.
  • Refusal: access.cannot_change_self, with membership_id.
  • Who: every caller of the three functions. The row menu offers nothing on your own row (R-ACC-199).
  • Source: zuki, 2026-11-13, in the session on #457.

R-ACC-194 · suspend_member() is refused when the membership is already suspended

Section titled “R-ACC-194 · suspend_member() is refused when the membership is already suspended”
  • Status: built
  • Example: given Deka's membership is suspended, when a super_admin suspends Deka again, then it is refused, nothing changes and no session ends.
  • Refusal: access.member_not_active, with membership_id, the key of R-ACC-115.
  • Who: every caller of suspend_member().
  • Source: D10; the lead in the session on #457.

R-ACC-195 · /users can be filtered to the members who hold one chosen role at the current pool

Section titled “R-ACC-195 · /users can be filtered to the members who hold one chosen role at the current pool”
  • Status: built
  • Example: given Deka holds checker at PML and Rina holds finance at PML and checker at SBY, when a super_admin at PML filters /users by Checker, then only Deka is listed; at SBY the same filter lists Rina. Peran: Semua lists every member (R-ACC-118).
  • Refusal: none.
  • Who: holders of user:read at the current pool. The pool switcher is the pool filter; the roles offered are the organization's roles.
  • Source: the lead in the session on #457 (filters at the current pool).

R-ACC-196 · /users can be filtered by status: Semua, Aktif or Ditangguhkan

Section titled “R-ACC-196 · /users can be filtered by status: Semua, Aktif or Ditangguhkan”
  • Status: built
  • Example: given Deka is active and Eko is suspended, when a super_admin at PML chooses Ditangguhkan, then only Eko is listed; Aktif lists Deka only, and Semua, the default, lists both.
  • Refusal: none.
  • Who: holders of user:read at the current pool. It combines with the role filter and the search.
  • Source: the lead in the session on #457.

R-ACC-197 · /users can be searched by a member's name or login email, ignoring case

Section titled “R-ACC-197 · /users can be searched by a member's name or login email, ignoring case”
  • Status: built
  • Example: given Deka Pratama signs in as deka@example.test, when a super_admin at PML searches "pratama" or "DEKA@EXAMPLE", then Deka is listed; "rina" doesn't list Deka.
  • Refusal: none.
  • Who: holders of user:read at the current pool, over the names and emails pool_members() gives them (R-ACC-122).
  • Source: the lead in the session on #457; R-ACC-118 (search was promised for M1-04).

R-ACC-198 · A member's row on /users has a menu with Tangguhkan and Keluarkan when active, and Pulihkan and Keluarkan when suspended, each offered only when the caller may make that call

Section titled “R-ACC-198 · A member's row on /users has a menu with Tangguhkan and Keluarkan when active, and Pulihkan and Keluarkan when suspended, each offered only when the caller may make that call”
  • Status: built
  • Example: given a super_admin with user:write and user:delete at every active pool, when they open /users, then Deka's active row offers Tangguhkan and Keluarkan, and Eko's suspended row Pulihkan and Keluarkan; Tangguhkan calls suspend_member() (R-ACC-187), Pulihkan reinstate_member() (R-ACC-188), Keluarkan remove_member() (R-ACC-189). A caller without user:delete at every active pool sees no Keluarkan; for a member outside a scoped caller's set (R-ACC-192), or holding a permission the caller lacks (R-ACC-191), neither action is offered.
  • Refusal: none: an action the caller can't make isn't shown. A call made anyway is refused by R-ACC-190, R-ACC-37, R-ACC-191 or R-ACC-192, and its text shows next to the menu (R-APP-10).
  • Who: holders of user:write or user:delete at the current pool. The row knows what to offer from pool_members(), as can_set_scope (R-ACC-153).
  • Source: the lead in the session on #457 (a row menu beside the Sheet).

R-ACC-199 · The caller's own row on /users offers no Tangguhkan, Pulihkan or Keluarkan

Section titled “R-ACC-199 · The caller's own row on /users offers no Tangguhkan, Pulihkan or Keluarkan”
  • Status: built
  • Example: given Rina is a super_admin at PML, when they open /users, then Deka's row offers Tangguhkan and Keluarkan and Rina's own row offers neither; Rina's row still offers Ubah akses (R-ACC-123).
  • Refusal: none: not shown. A call made anyway is refused by R-ACC-193.
  • Who: every caller of /users, on their own row.
  • Source: zuki, 2026-11-13, in the session on #457.

R-ACC-200 · reinstate_member() is refused when the membership is already active

Section titled “R-ACC-200 · reinstate_member() is refused when the membership is already active”
  • Status: built
  • Example: given Deka's membership is active, when a super_admin reinstates Deka, then it is refused and nothing changes.
  • Refusal: access.member_already_active, with membership_id.
  • Who: every caller of reinstate_member().
  • Source: D10; the lead in the session on #457 (the new key).

R-ACC-201 · /users/[membership_id] shows one member read-only: their name, login email, status, the date they joined, their roles at each pool and their rental-company scope

Section titled “R-ACC-201 · /users/[membership_id] shows one member read-only: their name, login email, status, the date they joined, their roles at each pool and their rental-company scope”
  • Status: built
  • Example: given Deka's membership was made on 2026-11-01, Deka holds checker at PML and finance at SBY, and is limited to partner A, when a super_admin opens Deka's name on /users, then /users/[membership_id] shows "Deka", deka@example.test, Aktif, 1 Nov 2026, PML: Checker and SBY: Finance, and A; with the flag it shows "Melihat semua perusahaan rental." (R-ACC-179), and with an empty list "Tidak melihat mobil apa pun." (R-ACC-186). A member with no role at any pool, or whose roles are all at pools where the caller lacks user:read, is still shown, with a line saying they hold no role the caller can see. The page changes nothing; changes are made in the Ubah akses Sheet and the row menu.
  • Refusal: none. A membership that doesn't exist, or that the caller can't read (R-ACC-16), shows the not-found page.
  • Who: holders of user:read at the current pool. Roles at a pool where the caller lacks user:read aren't shown (R-ACC-16). The date joined is the membership's created_at; for a login moved from v1 it is its v1 account's creation date, as loaded.
  • Source: zuki, 2026-11-13, in the session on #457 (a read-only detail page beside the Sheet). Changed by zuki in the session on #748, 2026-11-25; D108.

R-ACC-202 · suspend_member(), reinstate_member() and remove_member() are refused for a membership that doesn't exist or is in an organization where the caller holds no user:read

Section titled “R-ACC-202 · suspend_member(), reinstate_member() and remove_member() are refused for a membership that doesn't exist or is in an organization where the caller holds no user:read”
  • Status: built
  • Example: given Rina is super_admin of organization A only, when they suspend, reinstate or remove a membership of organization B, or an id that names no membership, then it is refused, nothing changes, and the refusal says nothing of B.
  • Refusal: access.member_not_found, with membership_id, as R-ACC-116.
  • Who: every caller of the three functions.
  • Source: D10; R-ACC-116.
Section titled “R-ACC-203 · Opening the link voids an invitation whose last sender's membership is now suspended or removed”
  • Status: built
  • Example: given Rina last sent Deka's invitation as checker at PML, when Rina's membership is suspended, or removed, before Deka opens the link, then opening it voids the invitation with the reason grant_not_held and makes no membership, as R-ACC-97 says; once Rina is reinstated before Deka opens it, Deka joins.
  • Refusal: none: the invitation's status becomes voided, with the reason grant_not_held. It never raises.
  • Who: every invitation, checked at acceptance: a suspended or removed member holds nothing (R-ACC-07), so R-ACC-97's check fails for them.
  • Source: the lead in the session on #457; R-ACC-97.

R-ACC-204 · /users has an Undangan tab listing the current pool's pending and voided invitations

Section titled “R-ACC-204 · /users has an Undangan tab listing the current pool's pending and voided invitations”
  • Status: built
  • Example: given deka@example.test has a pending invitation to checker at PML sent by Rina, and eko@example.test a voided one with the reason grant_not_held, when a super_admin at PML opens Undangan, then both are listed with the email, the role, who last sent it, when it was last sent, and the status: Menunggu, Kedaluwarsa for a pending one past its expiry (R-ACC-94), Dibatalkan for one revoked by a person (R-ACC-207), or Dibatalkan sistem with its reason for one voided at acceptance (R-ACC-97, R-ACC-162, R-ACC-183, R-ACC-203): "Pengundang tak lagi berhak memberi peran ini" for grant_not_held and "Di luar perusahaan rental pengundang" for scope_not_held. void_reason is an enum of grant_not_held, scope_not_held and revoked, each with its own label per language (D29). Accepted invitations aren't listed; one restored to pending (R-ACC-286, R-ACC-220) shows as Menunggu again. Neither are SBY's.
  • Refusal: none: without user:read at the pool the rows are hidden (R-ACC-99).
  • Who: holders of user:read at the current pool. The members list beside it is the Anggota tab (R-ACC-118). Kirim ulang, Batalkan and Pulihkan on its rows are R-ACC-216. The labels Menunggu, Kedaluwarsa, Dibatalkan and Dibatalkan sistem may change with fe's copy.
  • Source: zuki, 2026-11-13, in the session on #457 (an invitations tab, pending and voided).

R-ACC-205 · Each suspend_member(), reinstate_member() or remove_member() call is one entry in the activity log, showing who made it

Section titled “R-ACC-205 · Each suspend_member(), reinstate_member() or remove_member() call is one entry in the activity log, showing who made it”
  • Status: built
  • Example: given a super_admin removes Deka, who holds two roles and a rental company, when the audit log is read, then the membership's delete and its cascaded rows share the call's transaction id (R-AUD-13), with the super_admin as actor, so the activity log lists it once (R-AUD-14); a suspend or reinstate writes one row, the update. A refused call writes none. No reason is stored.
  • Refusal: none.
  • Who: every call of the three functions.
  • Source: D52; the lead in the session on #457 (no reason column; the audit log keeps who and when).

R-ACC-206 · A suspended member who signs in again lands on /no-access

Section titled “R-ACC-206 · A suspended member who signs in again lands on /no-access”
  • Status: built
  • Example: given Deka was suspended and sent to /login (R-ACC-52), when Deka signs in again, then they land on /no-access, not on their role's page (R-APP-04); once reinstated, their next sign-in lands on /dashboard.
  • Refusal: none.
  • Who: every member whose only membership is suspended. A member active in another organization lands there as usual.
  • Source: the lead in the session on #457; R-ACC-07, R-APP-04.

R-ACC-207 · revoke_invitation() voids a pending invitation with the reason revoked

Section titled “R-ACC-207 · revoke_invitation() voids a pending invitation with the reason revoked”
  • Status: built
  • Example: given Deka's invitation to checker at PML is pending, when a super_admin at PML calls revoke_invitation() for it, then its status is voided with the reason revoked, no email is sent, and opening its link makes no membership (R-ACC-211). An expired invitation is still pending, so it can be revoked.
  • Refusal: each has its own rule, checked in this order: profile.not_signed_in (42501) when no one is signed in; invitation.not_found, with invitation_id, for an invitation the caller can't see (R-ACC-99); invitation.not_allowed (R-ACC-208); access.grant_not_held (R-ACC-219); access.scope_limit_required, then access.rental_company_not_held (R-ACC-210); invitation.not_pending (R-ACC-209).
  • Who: holders of user:write at the invitation's pool, whoever sent it. The invitation stays, so the Undangan tab lists it (R-ACC-204).
  • Source: D98 (revoking left to M1-04); zuki, 2026-11-13, in the session on #457 (revoking is in); the lead there (voided with the reason revoked).

R-ACC-208 · revoke_invitation() is refused to a caller without user:write at the invitation's pool

Section titled “R-ACC-208 · revoke_invitation() is refused to a caller without user:write at the invitation's pool”
  • Status: built
  • Example: given Deka's pending invitation is to PML, when an admin with user:read but without user:write at PML revokes it, then it is refused and it stays pending. A super_admin at SBY only can't read PML's invitations, so they get invitation.not_found, as for an invitation that doesn't exist (R-ACC-99, R-ACC-207), not this refusal.
  • Refusal: invitation.not_allowed (42501), with pool_id, as R-ACC-95.
  • Who: every caller of revoke_invitation().
  • Source: the lead in the session on #457; R-ACC-95.

R-ACC-209 · revoke_invitation() is refused for an invitation that isn't pending

Section titled “R-ACC-209 · revoke_invitation() is refused for an invitation that isn't pending”
  • Status: built
  • Example: given Deka's invitation was accepted and Eko's was voided, when a super_admin revokes either, then it is refused and nothing changes.
  • Refusal: invitation.not_pending, with invitation_id and status, as R-ACC-95.
  • Who: every caller of revoke_invitation().
  • Source: the lead in the session on #457.

R-ACC-210 · revoke_invitation() is refused to a caller without the flag when the invitation carries the flag or names a rental company outside the caller's own

Section titled “R-ACC-210 · revoke_invitation() is refused to a caller without the flag when the invitation carries the flag or names a rental company outside the caller's own”
  • Status: built
  • Example: given Deka holds user:write at PML and is limited to partners A and B, when Deka revokes an invitation that names A, or none, then it goes through; one that names C, or carries the flag, is refused and stays pending.
  • Refusal: access.scope_limit_required (42501), with pool_id, for an invitation that carries the flag, as R-ACC-161; access.rental_company_not_held (42501), with organization_id and the stored rental_company_ids outside the caller's set, ordered by company name, as R-ACC-182. The flag is checked first.
  • Who: every caller of revoke_invitation() without the flag, as for a resend.
  • Source: the lead in the session on #457 (revoke takes resend's scope checks); D99, D100.
Section titled “R-ACC-211 · Opening the link of a revoked invitation makes no membership, and the invitee lands on /no-access”
  • Status: built
  • Example: given Deka's invitation was revoked before Deka opened the link, when Deka opens it within 24 hours and sets a password, then no membership or role is made, the invitation stays voided with the reason revoked, and Deka lands on /no-access (R-APP-04).
  • Refusal: none: acceptance takes only pending invitations (R-ACC-96).
  • Who: every revoked invitee, until a Pulihkan sets the invitation back to pending (R-ACC-286, R-ACC-220).
  • Source: zuki, 2026-11-13, in the session on #457.

R-ACC-212 · restore_invitation() makes the invitee of a voided invitation whose login is confirmed a member at once, with no email, and marks the invitation accepted

Section titled “R-ACC-212 · restore_invitation() makes the invitee of a voided invitation whose login is confirmed a member at once, with no email, and marks the invitation accepted”
  • Status: retired (a confirmed login's invitation goes back to pending with a sign-in link, and nothing is restored until it is accepted; restated as R-ACC-286; zuki 2026-11-20, #695)
  • Example: given Deka's invitation to checker at PML, naming partner A, was voided with the reason grant_not_held, scope_not_held or revoked, and Deka's login is confirmed because they opened the link, when a super_admin at PML who could send it now calls restore_invitation(), then Deka is an active member holding checker at PML, limited to A (or with the flag, if the invitation carries it, R-ACC-155), the role records the caller as granted_by, no email is sent, and the invitation is accepted, with accepted_at set and its void reason cleared; its invited_by stays as it was. The audit log keeps that it was voided (D52). A login that was never confirmed takes R-ACC-220 instead.
  • Refusal: profile.not_signed_in (42501) when no one is signed in; invitation.not_found, with invitation_id (R-ACC-99); invitation.not_allowed without user:write at its pool (R-ACC-208's test); invitation.role_not_at_pool when its role or pool is gone or the pool inactive (R-ACC-90); access.grant_not_held when its role holds a permission the caller lacks there (R-ACC-91); access.scope_limit_required, then access.rental_company_not_held, as R-ACC-161 and R-ACC-182; invitation.not_voided (R-ACC-213); invitation.already_member (R-ACC-214); invitation.login_exists, with the email only, when the login is a member of another organization (R-ACC-275). They are checked in that order, for both of R-ACC-212's and R-ACC-220's cases; R-ACC-220's case then checks invitation.already_pending.
  • Who: holders of user:write at the invitation's pool, through the Undangan tab's Pulihkan (R-ACC-216), which runs at once and shows a toast. This case sends no email and makes no Auth call.
  • Source: zuki, 2026-11-13, in the session on #457 (#599: Pulihkan on a voided invitation, rechecked as invite_member(), no email; a revoked one too); the lead there (accepted, void reason cleared); zuki's Z6, 2026-11-13 (a confirmed login joins at once).
Section titled “R-ACC-286 · restore_invitation() sets a voided invitation whose login is confirmed back to pending, and apps/web sends a fresh 24-hour sign-in link; nothing is restored until it is accepted”
  • Status: built
  • Example: given Rina was removed from A (R-ACC-189), a super_admin invited them again as checker at PML naming partner P (R-ACC-265), and that invitation was voided with the reason grant_not_held, scope_not_held or revoked, so Rina's confirmed login holds no membership in any organization, when a super_admin at PML who could send it now restores it on Wednesday at 10:00, then the invitation is pending again with its void reason cleared, the super_admin becomes its inviter, its expiry moves to Thursday at 10:00, restore_invitation() returns delivery 'sign_in' (R-ACC-287), and a sign-in link reaches Rina (R-ACC-273). No membership, role or rental company is made, and Rina's password stays as it was. Rina becomes a member holding checker at PML, limited to P, only when accept_invitation() runs before the expiry, from the link (R-ACC-271) or from /no-access (R-ACC-279), after rechecking the new inviter (R-ACC-277, R-ACC-97). A login that was never confirmed, or is missing, takes R-ACC-220 instead.
  • Refusal: checked in this order, for both this case and R-ACC-220's: profile.not_signed_in (42501) when no one is signed in; invitation.not_found, with invitation_id (R-ACC-99); invitation.not_allowed without user:write at its pool (R-ACC-208's test); invitation.role_not_at_pool when its role or pool is gone or the pool inactive (R-ACC-90); access.grant_not_held when its role holds a permission the caller lacks there (R-ACC-91); access.scope_limit_required, then access.rental_company_not_held, as R-ACC-161 and R-ACC-182; invitation.not_voided (R-ACC-213); invitation.already_member (R-ACC-214); invitation.login_exists, with the email only, when the login is a member of another organization (R-ACC-275); invitation.already_pending, with the invitation_id of the pending one, when the email has another pending invitation of this organization (R-ACC-102); invitation.login_exists, with the email only, when another organization holds a pending invitation for it, so that organization's invitation id is never shown (R-ACC-92, R-ACC-102). Every refusal leaves the invitation voided. When the email can't be sent, the invitation stays pending and the text next to Pulihkan says so, as R-ACC-105 (R-APP-10), so it can be resent (R-ACC-95, R-ACC-266).
  • Who: holders of user:write at the invitation's pool, through the Undangan tab's Pulihkan (R-ACC-216), which runs at once and shows a toast. restore_invitation() records it and returns the invitation with status pending and the delivery; apps/web's server-only module only follows the delivery, asking Supabase Auth for the sign-in link because Auth won't invite a login that exists, as for a re-invitation (R-ACC-265, D3). The one restoring becomes the inviter, as R-ACC-95, so acceptance rechecks their grants and set, not those of the sender whose loss voided it. A confirmed login that holds a membership anywhere is refused above, so no restore makes a membership at once.
  • Source: zuki, 2026-11-20, in the session on #694 (#695: link and wait, as D101's way back; restates R-ACC-212); D104; R-ACC-95, R-ACC-102, R-ACC-220.

R-ACC-213 · restore_invitation() is refused for an invitation that isn't voided

Section titled “R-ACC-213 · restore_invitation() is refused for an invitation that isn't voided”
  • Status: built
  • Example: given Deka's invitation is pending and Eko's accepted, when a super_admin calls restore_invitation() for either, then it is refused and nothing changes; Deka's can be resent instead (R-ACC-95).
  • Refusal: invitation.not_voided, with invitation_id and status.
  • Who: every caller of restore_invitation().
  • Source: the lead in the session on #457.

R-ACC-214 · restore_invitation() is refused when the invitee already has a membership in the invitation's organization

Section titled “R-ACC-214 · restore_invitation() is refused when the invitee already has a membership in the invitation's organization”
  • Status: built
  • Example: given Deka's invitation to organization A was voided and Deka has since become a member of A another way, such as by the operator, when a super_admin of A restores it, then it is refused and Deka's membership stays as it was.
  • Refusal: invitation.already_member, with invitation_id.
  • Who: every caller of restore_invitation().
  • Source: the lead in the session on #457 (the new key).

R-ACC-275 · restore_invitation() is refused when the invitee's login is a member of another organization

Section titled “R-ACC-275 · restore_invitation() is refused when the invitee's login is a member of another organization”
  • Status: built
  • Example: given Deka's invitation to checker at PML in organization A was voided, and Deka's login has since become a member of organization B, when a super_admin of A restores it, then it is refused with invitation.login_exists, the invitation stays voided, and Deka's membership of B stays as it was. It is refused the same way whether Deka's login is confirmed (R-ACC-286) or was never confirmed (R-ACC-220).
  • Refusal: invitation.login_exists, with the email only, as R-ACC-92, so the other organization is never named. It is checked right after invitation.already_member (R-ACC-214), in R-ACC-286's order.
  • Who: every caller of restore_invitation(). A login is a member of one organization (D104); acceptance refuses the same case (R-ACC-276).
  • Source: D104, R-ACC-92; zuki, 2026-11-19, in the session on #693 (#690: for any login, confirmed or not).

R-ACC-215 · restore_invitation() ends no sessions

Section titled “R-ACC-215 · restore_invitation() ends no sessions”
  • Status: built
  • Example: given Deka is signed in on /no-access after their invitation was voided, when a super_admin restores it (R-ACC-286), then Deka's session goes on and their profile's time of last access change stays as it was; the invitation is pending again, and accepting it from /no-access (R-ACC-279) ends no session either (R-ACC-98).
  • Refusal: none.
  • Who: every invitee whose invitation is restored. In R-ACC-286's and R-ACC-220's cases alike the invitation goes back to pending, and acceptance later ends none (R-ACC-98).
  • Source: the lead in the session on #457; R-ACC-98, D48.

R-ACC-216 · The Undangan tab offers Kirim ulang and Batalkan on a pending invitation and Pulihkan on a voided one, each only when the caller may make that call

Section titled “R-ACC-216 · The Undangan tab offers Kirim ulang and Batalkan on a pending invitation and Pulihkan on a voided one, each only when the caller may make that call”
  • Status: built
  • Example: given a super_admin with the flag and user:write at PML, when they open Undangan at PML, then Deka's pending invitation offers Kirim ulang, which resends it (R-ACC-95), and Batalkan, which asks to confirm (R-ACC-222) and calls revoke_invitation() (R-ACC-207), and Eko's voided one offers Pulihkan, which asks nothing, calls restore_invitation() at once and shows a toast saying a new link was sent (R-ACC-286, R-ACC-220). A holder of user:read without user:write sees none of them; a caller without the flag sees none on an invitation outside their set (R-ACC-210, R-ACC-161, R-ACC-182), and none on one whose role holds a permission they lack (R-ACC-219, R-ACC-91).
  • Refusal: none: an action the caller can't make isn't shown. A call made anyway is refused by its function, and its text shows next to the control (R-APP-10).
  • Who: holders of user:write at the current pool, on the Undangan tab (R-ACC-204). Pulihkan's toast is the same for both deliveries, 'sign_in' and 'invite' (R-ACC-287): "Undangan dipulihkan dan tautan baru dikirim ke {email}."
  • Source: zuki, 2026-11-13, in the session on #457; zuki, 2026-11-20, in the session on #694 (no dialog; one toast for both deliveries).

R-ACC-217 · Tangguhkan asks to confirm, naming the member and saying that their sessions end at their next request and their roles are kept

Section titled “R-ACC-217 · Tangguhkan asks to confirm, naming the member and saying that their sessions end at their next request and their roles are kept”
  • Status: built
  • Example: given a super_admin chooses Tangguhkan on Deka's row (R-ACC-198), when the dialog opens, then it names Deka, says Deka is signed out at their next request (R-ACC-52) and keeps their roles, overrides and rental companies until reinstated (R-ACC-187), and suspend_member() runs only once it is confirmed; cancelling changes nothing.
  • Refusal: none.
  • Who: every caller who chooses Tangguhkan. Pulihkan on a suspended member asks nothing: it runs at once and shows a toast (R-ACC-188). The copy is fe's: "Tangguhkan {name}?", "{name} keluar dari Opleet di permintaan berikutnya dan tidak punya akses sampai dipulihkan. Peran, pengecualian izin dan perusahaan rentalnya tetap tersimpan.", with Tangguhkan and Batal.
  • Source: the lead in the session on #457 (confirm as R-ACC-148 does).

R-ACC-218 · Keluarkan asks to confirm, naming the member and saying that their roles, overrides and rental companies at every pool are deleted

Section titled “R-ACC-218 · Keluarkan asks to confirm, naming the member and saying that their roles, overrides and rental companies at every pool are deleted”
  • Status: built
  • Example: given a super_admin chooses Keluarkan on Rina's row (R-ACC-198), when the dialog opens, then it names Rina, says their roles, overrides and rental companies at every pool of the organization are deleted and they are signed out (R-ACC-53), and remove_member() runs only once it is confirmed; cancelling changes nothing.
  • Refusal: none.
  • Who: every caller who chooses Keluarkan. Nothing restores the membership; for a new invitation, see R-ACC-92 and R-ACC-265. The copy is fe's: "Keluarkan {name} dari organisasi?", "Keanggotaan {name} dihapus beserta semua peran, pengecualian izin dan perusahaan rentalnya di setiap pool. {name} keluar dari Opleet di permintaan berikutnya. Ini tidak bisa dibatalkan.", with Keluarkan and Batal.
  • Source: the lead in the session on #457 (confirm as R-ACC-148 does); R-ACC-189.

R-ACC-219 · revoke_invitation() is refused when the invitation's role holds a permission the caller lacks at its pool

Section titled “R-ACC-219 · revoke_invitation() is refused when the invitation's role holds a permission the caller lacks at its pool”
  • Status: built
  • Example: given an organization's own role "kasir" that holds payment:approve, and Rina holds user:write at PML but not payment:approve, when Rina revokes Deka's pending invitation as kasir at PML, then it is refused and it stays pending; revoking one to a role whose permissions Rina all holds at PML goes through. A grant override counts as a permission the caller holds, and a deny override takes its permission out.
  • Refusal: access.grant_not_held, with pool_id and the permission_codes the caller lacks there, as R-ACC-91.
  • Who: every caller of revoke_invitation(). Taking away needs what granting would, as R-ACC-111 for revoke_role().
  • Source: the lead in the session on #457 (as R-ACC-111); R-ACC-91, R-ACC-95.
Section titled “R-ACC-220 · restore_invitation() sets a voided invitation whose login was never confirmed, or is missing, back to pending, and apps/web sends a fresh 24-hour link, as for a resend”
  • Status: built
  • Example: given Deka's invitation to checker at PML was revoked before Deka opened the link, so Deka's login was never confirmed, when a super_admin at PML restores it on Wednesday at 10:00, then the invitation is pending again with its void reason cleared, the super_admin becomes its inviter, its expiry moves to Thursday at 10:00, and a new email reaches Deka; Deka holds no membership until they open that link, when acceptance makes it (R-ACC-96, R-ACC-155) after rechecking the new inviter (R-ACC-97). The same holds when Deka's login is missing: the invite makes it (R-ACC-93). restore_invitation() returns delivery 'invite' (R-ACC-287). Given Deka's login is confirmed, R-ACC-286 applies instead.
  • Refusal: R-ACC-286's, in its order, ending with invitation.already_pending and invitation.login_exists for another organization's pending invitation (R-ACC-92, R-ACC-102); every refusal leaves the invitation voided. When the email can't be sent, the invitation stays pending and the text next to Pulihkan says so, as R-ACC-105 (R-APP-10), so it can be resent (R-ACC-95).
  • Who: holders of user:write at the invitation's pool. restore_invitation() records it and returns the invitation with status pending; apps/web's server-only module sends the link through Auth's admin invite, as for a resend (R-ACC-93, R-ACC-95). The one restoring becomes the inviter, as R-ACC-95, so acceptance rechecks their grants and set, not those of the sender whose loss voided it.
  • Source: zuki, 2026-11-13, in the session on #457 (Z6: a login never confirmed or missing gets a fresh link, as a resend); R-ACC-95, R-ACC-102.

R-ACC-221 · Each revoke_invitation() or restore_invitation() call is one entry in the activity log, showing who made it

Section titled “R-ACC-221 · Each revoke_invitation() or restore_invitation() call is one entry in the activity log, showing who made it”
  • Status: built
  • Example: given a super_admin restores Deka's voided invitation, when the audit log is read, then the call wrote one row, the invitation's update, with the super_admin as actor, whose old values keep the earlier status and void reason, so the activity log lists it once (R-AUD-14). A revoke writes one row the same way, and so does a restore for a confirmed login or for one never confirmed (R-ACC-286, R-ACC-220): the membership is made later, at acceptance, as its own entry (R-ACC-96). A refused call writes none.
  • Refusal: none.
  • Who: every call of the two functions.
  • Source: D52; the lead in the session on #457; R-ACC-286 (no restore makes a membership, #695).
Section titled “R-ACC-222 · Batalkan on an invitation asks to confirm, naming the email and saying that its link will no longer make a membership”
  • Status: built
  • Example: given a super_admin chooses Batalkan on deka@example.test's pending row (R-ACC-216), when the dialog opens, then it names deka@example.test, says the link in that email will no longer make a membership and that it can be restored later from the tab (R-ACC-286, R-ACC-220), and revoke_invitation() runs only once it is confirmed; going back changes nothing.
  • Refusal: none.
  • Who: every caller who chooses Batalkan. The copy is fe's: "Batalkan undangan untuk {email}?", "Tautan di email itu tidak lagi membuat keanggotaan. Anda bisa memulihkannya nanti dari tab ini.", with Batalkan undangan and Kembali.
  • Source: the lead in the session on #457 (a confirm as R-ACC-217 and R-ACC-218).