You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
give permissions based on a subscription a user has
keep track of usage to apply limitations (ex: max number of documents owned in a collection)
What it implies:
Plans are roles named biota.plan.<id>
Relation between a user (or any document) and plan is called a subscription
Relation is determined by a _membership.plan field on a document
Basic example
Plan definition:
// API is very similar to db.role() if not the samedb.plan('basic').insert()// update permissionsdb.plan("basic").privileges.set({resource: Collection('todos'),rights: {insert: ['owner']}})// expire in an hourdb.plan('basic').expireIn(3600)// list plansdb.plans.findAll()
Motivation
Properly manage the user's permissions through a common model of plans/subscriptions.
The text was updated successfully, but these errors were encountered:
Summary
Integrate logic in order to:
What it implies:
biota.plan.<id>
_membership.plan
field on a documentBasic example
Plan definition:
Motivation
Properly manage the user's permissions through a common model of plans/subscriptions.
The text was updated successfully, but these errors were encountered: