loopback/test
ebarault f0e70dd8a9 Fix Role.isOwner() for multiple user models
Fix `Role.isOwner()` to check both principalId and principalType.
This fixes a bug where users from different User model were treated
as owners as long as their user id was the same as owner's id.
2017-02-17 11:19:07 +01:00
..
e2e Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
fixtures Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
helpers Upgrade supertest to 3.x 2017-02-09 16:17:10 +01:00
util Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
access-control.integration.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
access-token.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
acl.test.js Add promise support to built-in model ACL 2017-01-31 14:09:43 +01:00
app.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
change-stream.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
change.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
checkpoint.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
context-options.test.js Upgrade supertest to 3.x 2017-02-09 16:17:10 +01:00
data-source.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
email.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
error-handler.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
geo-point.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
hidden-properties.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
integration.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
karma.conf.js Babelify juggler for Karma tests 2017-02-01 14:00:43 +01:00
key-value-model.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
loopback.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
memory.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
mocha.opts Use English when running Mocha tests 2017-01-26 10:11:08 +01:00
model.application.test.js Upgrade eslint config and grunt-eslint to latest 2016-12-06 16:05:13 +01:00
model.test.js Implement new http arg mapping optionsFromRequest 2016-12-22 10:26:01 +01:00
multiple-user-principal-types.test.js Fix Role.isOwner() for multiple user models 2017-02-17 11:19:07 +01:00
registries.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
relations.integration.js Upgrade supertest to 3.x 2017-02-09 16:17:10 +01:00
remote-connector.test.js Contextify DAO and relation methods 2016-12-22 10:26:09 +01:00
remoting-coercion.test.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
remoting.integration.js Contextify DAO and relation methods 2016-12-22 10:26:09 +01:00
replication.rest.test.js Turn on "no-unused-expressions" rule for eslint 2016-11-22 15:30:04 +01:00
replication.test.js Add option disabling periodic change rectification 2017-01-04 15:58:44 +01:00
rest.middleware.test.js Upgrade eslint config and grunt-eslint to latest 2016-12-06 16:05:13 +01:00
role-mapping.test.js Add promise support to built-in model RoleMapping 2017-02-01 09:51:43 +01:00
role.test.js Fix Role.isOwner() for multiple user models 2017-02-17 11:19:07 +01:00
user.integration.js Fix logout to handle no or missing accessToken 2017-01-30 08:56:18 +01:00
user.test.js Fix creation of verification links 2017-02-06 12:39:21 +01:00