loopback/lib
ebarault 94c786f2f7 Fix connector naming in strict mode
In strict mode, creating properties on strings is not allowed.
As a result, creating a new datasource fails with the following
error:

    TypeError: Cannot create data source "db":
    Cannot create property 'name' on string 'mongodb'

In this commit, we fix the code to assign the connector name only
if the connector is an object (not a string).

Add "returnOnlyRoleNames" option to Role.getRoles

Currently the return type of Role.getRoles() method is inconsistent:
role names are returned for smart roles and role ids are returned for
static roles (configured through user-role mapping).

This commit adds a new option to Role.getRoles() allowing the caller
to request role names to be returned for all types of roles.
2016-11-30 14:08:28 -05:00
..
connectors Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
access-context.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
application.js Fix connector naming in strict mode 2016-11-30 14:08:28 -05:00
browser-express.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
builtin-models.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
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 Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
model.js Merge pull request #2947 from strongloop/related-models-allow-array 2016-11-23 14:51:08 -05:00
persisted-model.js Fix broken document for `upsertWithWhere` 2016-11-24 15:58:21 -05:00
registry.js Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00
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 Update eslint to loopback config v5 2016-11-22 14:08:02 +01:00