loopback/lib
pierreclr e17132d061
Fix OWNER role to handle multiple relations
Fix the code resolving OWNER role to correctly handle the situation
where the target model has multiple "belongsTo" relations to the User
model.

Introduce a new model setting "ownerRelations" that enables the new
behavior. When "ownerRelations" is set to true, then all "belongsTo"
relations are considered as granting ownership. Alternatively,
"ownerRelations" can be set to an array of the relations which
are granting ownership.

For example, a document can "belongTo" an author and a reviewer,
but only the author is an owner, the reviewer is not. In this case,
"ownerRelations" should be set to "['author']".
2017-09-27 17:11:36 +02:00
..
connectors Upgrade eslint-config to 7.x 2017-01-06 12:12:35 +01:00
access-context.js Add support for scoped access tokens 2017-04-07 13:04:40 +02:00
application.js Fix OWNER role to handle multiple relations 2017-09-27 17:11:36 +02:00
browser-express.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
builtin-models.js Deep-clone model settings in lib/builtin-models 2017-02-24 15:13:06 +01:00
configure-shared-methods.js Fix relation race condition in model glob 2017-09-01 09:18:39 +09:30
current-context.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
globalize.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
loopback.js Fix relation race condition in model glob 2017-09-01 09:18:39 +09:30
model.js Support createOnlyInstance in model (#3548) 2017-08-22 17:10:55 -07:00
persisted-model.js Handle missing getUpdateOnlyProperties fn 2017-08-23 10:21:11 -04:00
registry.js Fix relation race condition in model glob 2017-09-01 09:18:39 +09:30
runtime.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
server-app.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
utils.js Optimise replication 2017-02-22 15:12:54 +01:00