loopback/lib
ryanxwelch 9d77ba28d3
Fix crash in verifyUserRelations
In the present implementation `verifyUserRelations(Model)` assumes that
`Model.relations.accessTokens` is always set, and as a result may
crash when trying to access `polymorphic` property of that relation.

It seems the intention is to check whether the the following conditions
are met:
 1. a model has a hasMany accessTokens relation
 2. that relation is polymorphic

This commit fixes the problem by accounting for the case where the
accessTokens relation was not correctly set up.
2018-06-29 16:14:01 +02:00
..
connectors Update nodemailer to v4.x 2018-06-11 16:01:42 +02:00
access-context.js Fix role check in apps with multiple user models 2018-03-20 14:15:44 +01:00
application.js Fix crash in verifyUserRelations 2018-06-29 16:14:01 +02:00
browser-express.js Update Copyright Years 2018-01-16 13:55:02 +01:00
builtin-models.js Update Copyright Years 2018-01-16 13:55:02 +01:00
configure-shared-methods.js Update Copyright Years 2018-01-16 13:55:02 +01:00
current-context.js Update Copyright Years 2018-01-16 13:55:02 +01:00
globalize.js Update Copyright Years 2018-01-16 13:55:02 +01:00
loopback.js Update Copyright Years 2018-01-16 13:55:02 +01:00
model.js model: fix infinite loop on nestRemoting 2018-02-08 11:26:02 -05:00
persisted-model.js Update Copyright Years 2018-01-16 13:55:02 +01:00
registry.js Update Copyright Years 2018-01-16 13:55:02 +01:00
runtime.js Update Copyright Years 2018-01-16 13:55:02 +01:00
server-app.js Update Copyright Years 2018-01-16 13:55:02 +01:00
utils.js Update Copyright Years 2018-01-16 13:55:02 +01:00