17 lines
473 B
Plaintext
17 lines
473 B
Plaintext
let private_object = new_object()
|
|
.title("Alice's Private Object")
|
|
.description("This object can only be seen and modified by Alice")
|
|
.save_object();
|
|
|
|
let object_shared_with_bob = new_object()
|
|
.title("Alice's Shared Collection")
|
|
.description("This object can be seen by Bob but modified only by Alice")
|
|
.save_object();
|
|
|
|
let new_access = new_access()
|
|
.object_id(object_shared_with_bob.id())
|
|
.circle_public_key("bob_pk")
|
|
.save_access();
|
|
|
|
|