Managing Permissions
Types
Methods
These can only be done by the Tome owner.
setPermissions
setPermissions
store.setPermissions(permissions: Perm)
Params: the new permissions
to set.
Returns: Promise<void>
Update a store's permissions after initialization.
inviteShip
inviteShip
store.inviteShip(ship: string, level: InviteLevel)
Params: the ship
to set permissions for and the level
to set to.
Returns: Promise<void>
Set permissions for a specific ship. Invites take precedence over bucket-level permissions.
blockShip
blockShip
store.blockShip(ship: string)
Params: the ship
to block.
Returns: Promise<void>
An alias for inviteShip(ship, 'block')
.
Last updated