Skip to content

Ownership of documents

Jiri Spac edited this page Dec 6, 2015 · 1 revision

One of the most problematic areas a developer has to solve when writing a web app is authentication and authorization. Moonridge helps you by automatically assigning every document to an owner. Every schema that you register within Moonridge is extended with an owner field. This field is assigned with a reference any time an authorized user creates an entity. That way, an ownership of a model is something you don't have to worry about. It is vital to secure your database with appropriate access rights and having an owner is vital part of achieving that.

So all you have to do to get a author of an entity in your DB is to populate it with owner. Moonridge by default lets a user see al his documents, no matter the authorization.

Clone this wiki locally