mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Correct the entry type's account of what a level is
The payload type still said the level is read throughout and `canWrite` false. Both were true of the shipped release and neither survives the invitation gaining a choice. Also says what `canWrite` does not mean, since the word invites a larger reading than the thing it grants.
This commit is contained in:
1 parent
ca3a654e47
commit
fe142bbd3a
1 file changed
+6
-2
@@ -20,9 +20,13 @@ export interface AccountAccessEntry {
|
||||
accountId: string;
|
||||
username: string;
|
||||
displayName: string | null;
|
||||
/** The grant's level. `"read"` throughout v1. */
|
||||
/** The grant's level, as the owner offered it and the caller accepted it. */
|
||||
access: "read" | "write";
|
||||
/** May this caller change that record. Resolved server-side; `false` in v1. */
|
||||
/**
|
||||
* May this caller ADD to that record. Resolved server-side. It never means
|
||||
* edit or delete: those stay with the owner at both levels, and no field
|
||||
* here offers them.
|
||||
*/
|
||||
canWrite: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user