Frage

What are the properties of userCtx in CouchDB in filter functions (Can be accessed from req.userCtx)? Is there any way I can get properties stored at _users database for the user from userCtx?

War es hilfreich?

Lösung

The properties of userCtx object are: db for current database name, name for current username and roles for list of his roles.

This object cannot be extended somehow thought _users database and is permanent.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top