This commit is contained in:
@@ -60,3 +60,8 @@ application concern belongs in the shared module.
|
||||
owner and appends its audit before commit. The application still owns route
|
||||
authorization, role presentation, CSRF, and the exact fresh-passkey
|
||||
operation binding.
|
||||
- Extending that page to membership suspension, reactivation, and removal
|
||||
exposed the same time-of-check gap in the older lifecycle methods. The new
|
||||
optimistic extension serializes on the active administrator membership,
|
||||
rechecks the exact state bound into the passkey assertion, applies team and
|
||||
direct-binding consequences, and writes the audit in one transaction.
|
||||
|
||||
@@ -26,7 +26,7 @@ The packages are ordinary Go imports. Pin the current preview and verify its
|
||||
module checksum:
|
||||
|
||||
```bash
|
||||
go get gamertan.com/web/requestmeta@v0.1.0-preview.16
|
||||
go get gamertan.com/web/requestmeta@v0.1.0-preview.17
|
||||
go mod verify
|
||||
```
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import "gamertan.com/web/requestmeta"
|
||||
and request the containing module at an exact version:
|
||||
|
||||
```bash
|
||||
go get gamertan.com/web/requestmeta@v0.1.0-preview.16
|
||||
go get gamertan.com/web/requestmeta@v0.1.0-preview.17
|
||||
```
|
||||
|
||||
Only imported packages are compiled and linked. The packages nevertheless
|
||||
|
||||
@@ -22,6 +22,15 @@ team membership can be removed independently. Configure `OwnerRole` when
|
||||
constructing the service before exposing membership-removal operations. The
|
||||
SQLite adapter then refuses to suspend or remove the final active direct owner.
|
||||
|
||||
Fresh-authentication administration pages should use
|
||||
`ChangeMembershipStatus` and `RemoveMembershipIfCurrent`, passing the exact
|
||||
displayed state as `ExpectedStatus`. The SQLite adapter acquires its write lock
|
||||
before checking that state, verifies the actor is still an active member of an
|
||||
active organization, and commits the lifecycle effects and audit together.
|
||||
Suspension removes team memberships; reactivation does not infer or restore
|
||||
them. Removal also revokes current direct bindings. A repository without the
|
||||
optimistic extension fails closed instead of falling back to a stale mutation.
|
||||
|
||||
For a reviewed access-administration page, use `organizations.Members` to list
|
||||
bounded active and suspended memberships, and
|
||||
`access.OrganizationUserBindings` to list only current direct,
|
||||
|
||||
Reference in New Issue
Block a user