mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 00:12:18 +00:00
fix: recover managed sharing boundaries
This commit is contained in:
1 parent
01562b4aef
commit
d86358f3e4
96 files changed
+3578
-397
No files matched your search
@@ -102,6 +102,21 @@ export class WideEventBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* v1.37.0 — record that provider generation is closed on this request.
|
||||
*
|
||||
* Merges for the same reason `setActingAs` does, and is stamped in the same
|
||||
* place: the record resolver, which is where the owner row is in hand. It is
|
||||
* read back through `delegatedGenerationSuppressed()`.
|
||||
*/
|
||||
setDelegatedGenerationSuppressed(): this {
|
||||
this.event.auth = {
|
||||
...(this.event.auth ?? {}),
|
||||
delegated_generation: "suppressed",
|
||||
};
|
||||
return this;
|
||||
}
|
||||
|
||||
setAction(action: WideEvent["action"]): this {
|
||||
this.event.action = action;
|
||||
return this;
|
||||
|
||||
@@ -66,6 +66,16 @@ export interface WideEvent {
|
||||
* dashboard that conflates them cannot answer either.
|
||||
*/
|
||||
acting_as?: string;
|
||||
/**
|
||||
* v1.37.0 — set when this request is acting on somebody else's record and
|
||||
* that somebody could have asked for the generation themselves. It is the
|
||||
* one fact the generated reads consult before enqueuing a provider job:
|
||||
* a manager's navigation must not spend the owner's budget or ship the
|
||||
* owner's record to the owner's provider. Absent means "generate as
|
||||
* usual", which is what every self-request, every guardian request on a
|
||||
* managed profile and every background job is.
|
||||
*/
|
||||
delegated_generation?: "suppressed";
|
||||
};
|
||||
|
||||
// Business-Daten (was wurde getan)
|
||||
|
||||
Reference in new issue
Block a user