Commit Graph

2354 Commits

Author SHA1 Message Date
virkt25 aaa1381964 fix: accessToken create default acl 2018-08-08 16:17:48 -04:00
Thomas Leah 0dac936bba add: ppc64 and s390x to not run UI tests 2018-08-08 15:27:29 -04:00
virkt25 5ee731eafd chore: update deps + fix linting + .npmrc 2018-08-08 13:31:30 -04:00
Diana Lau 6d23c2edd1
Merge pull request #3947 from seabaylea/lts-and-support
Add badges and information for LTS and support
2018-07-20 11:09:05 -04:00
Chris Bailey 962efec9cd Update Loopback 2.x EOL dates 2018-07-20 15:25:48 +01:00
Chris Bailey 951b61a2ae Fix formatting 2018-07-18 17:16:55 +01:00
Chris Bailey f90e1c5e01 Merge supported versions and LTS sections 2018-07-18 17:14:55 +01:00
Chris Bailey cdab1519af Update support badge and move LTS section 2018-07-18 09:51:48 +01:00
Chris Bailey 7e7f8facd8 Add badges and information for LTS and support 2018-07-17 22:25:46 +01:00
virkt25 72d85fa9ea 3.21.0
* Make verifyUserRelations() more robust (mcitdev)
 * Fix crash in verifyUserRelations (ryanxwelch)
 * Fix crash in User model's "before delete" hook (mcitdev)
 * [WebFM] cs/pl/ru translation (candytangnb)
 * Update strong-error-handler (shimks)
2018-07-09 17:04:16 -04:00
Miroslav Bajtoš 7ad5a2e1bc
Merge pull request #3938 from mcitdev/master
Make verifyUserRelations() more robust
2018-07-03 09:18:39 +02:00
mcitdev f9e9aaa8ce
Make verifyUserRelations() more robust
The fix introduced in previous commit was relying on the default
merge algorighm applied when a child model inherits relation config
from the parent.

This commit changes the check to use a more reliable approach
based on the relation metadata configured by the child model.
2018-07-03 09:03:44 +02:00
Miroslav Bajtoš cd1b31920e
Merge pull request #3934 from strongloop/fix/crash-in-verifyUserRelations
fix: resolve customAccessToken warning error that causes app to crash
2018-06-29 17:18:05 +02:00
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
Miroslav Bajtoš 95bcf035a8
Merge pull request #3917 from mcitdev/master
Fix crash in User model's "before delete" hook
2018-06-29 15:27:39 +02:00
mcitdev 37e57f6943
Fix crash in User model's "before delete" hook
Update User's "before delete" hook to take into account the case when
the related AccessToken model was not configured in the application
(attached to a datasource).
2018-06-29 14:51:41 +02:00
Miroslav Bajtoš 9c554fd4f0
Merge pull request #3933 from candytangnb/webfm-0628-225109-cs,pl,ru-translation
[WebFM] cs/pl/ru translation Check-in by YI TANG (tangyinb@cn.ibm.com)
2018-06-29 09:19:14 +02:00
candytangnb 4dd195e654 [WebFM] cs/pl/ru translation
cs/pl/ru translation check-in by YI TANG (tangyinb@cn.ibm.com) using
WebFM tool.
2018-06-28 22:51:09 -04:00
Kyusung Shim 44951a1032
Merge pull request #3912 from strongloop/update-strong-error-handler
Update strong-error-handler
2018-06-13 10:42:51 -04:00
shimks 0590bd1bb4 Update strong-error-handler 2018-06-12 12:25:33 -04:00
Miroslav Bajtoš 7d93b27a80
3.20.0
* Update strong-globalize to 4.x (Miroslav Bajtoš)
 * Update nodemailer to v4.x (Dimitris)
 * Drop support for Node.js 4.x (Miroslav Bajtoš)
2018-06-12 08:31:51 +02:00
Miroslav Bajtoš 5a87f8df16
Merge pull request #3911 from strongloop/update-strong-globalize
Update strong-globalize to 4.x
2018-06-12 08:27:39 +02:00
Miroslav Bajtoš f17346ba50
Update strong-globalize to 4.x 2018-06-11 17:37:56 +02:00
Miroslav Bajtoš 995c14eccf
Merge pull request #3585 from mitsos1os/nodemailer-update
Update nodemailer to the latest v4 version
2018-06-11 16:49:34 +02:00
Dimitris 83fc62c0af
Update nodemailer to v4.x 2018-06-11 16:01:42 +02:00
Miroslav Bajtoš 58090b4b80
Merge pull request #3908 from strongloop/drop-node-4x
Drop support for Node.js 4.x
2018-06-11 15:54:15 +02:00
Miroslav Bajtoš ec46c457d3
Drop support for Node.js 4.x 2018-06-08 09:33:55 +02:00
Miroslav Bajtoš 85aa3fd679
3.19.3
* Provide link to CODEOWNERS (Aditya Agarwal)
 * fix bug in User.verify when confirm is disabled (wolrajhti)
 * Enable Node.js 10.x on Travis CI (Miroslav Bajtoš)
2018-06-04 16:36:29 +02:00
Miroslav Bajtoš 8c4c91a5d1
Merge pull request #3904 from itaditya/patch-1
Provide URL to CODEOWNERS in stalebot comments.
2018-06-04 16:35:33 +02:00
Aditya Agarwal cf5b78fc6c
Provide link to CODEOWNERS
Currently, stale bot doesn't provide the link to the CODEOWNERS file,
a person must have to browse for the file to open it.

This commit adds a link to the CODEOWNERS file so that a person can
directly open it.
2018-06-04 16:24:42 +02:00
Miroslav Bajtoš c6d8565216
Merge pull request #3896 from wolrajhti/patch-2
Fix bug in User.verify when confirm is disabled
2018-06-04 16:20:39 +02:00
wolrajhti cc4fc2197f
fix bug in User.verify when confirm is disabled 2018-05-31 12:40:23 +02:00
Miroslav Bajtoš eb3301abf2
Merge pull request #3899 from strongloop/add-node-10
Enable Node.js 10.x on Travis CI
2018-05-29 09:48:00 +02:00
Miroslav Bajtoš 36ef35dd60
Enable Node.js 10.x on Travis CI 2018-05-29 08:55:15 +02:00
Miroslav Bajtoš 59b14093c5
3.19.2
* Add check for undefined user email in setter (Kevin Scroggins)
2018-05-29 08:54:18 +02:00
Miroslav Bajtoš c2077dfcb0
Merge pull request #3779 from nitro404/hotfix/case-insensitive-user-email
Fix bugs with case insensitive user emails
2018-05-29 08:53:23 +02:00
Kevin Scroggins b2bc449e24 Add check for undefined user email in setter 2018-05-23 20:00:45 -04:00
Miroslav Bajtoš 3e3092c017
3.19.1
* Fix isOwner() bug in multiple-principal setup (Miroslav Bajtoš)
2018-05-21 09:17:50 +02:00
Miroslav Bajtoš 07e759259e
Merge pull request #3883 from strongloop/fix/principal-type-polymorphic-user
Fix isOwner() bug in multiple-principal setup
2018-05-21 09:16:45 +02:00
Miroslav Bajtoš 2aead13f11
Fix isOwner() bug in multiple-principal setup
Fix the owner role resolver to correctly handle the case when a user
from one model (e.g. Seller) is accessing an instance of another
user-like model (e.g. Customer).
2018-05-18 15:36:59 +02:00
Miroslav Bajtoš df70f83d67
3.19.0
* feat: remove all references to a Model (Miroslav Bajtoš)
2018-04-17 10:09:11 +02:00
Miroslav Bajtoš 7a148caa26
Merge pull request #3858 from strongloop/feature/remove-model
feat: remove all references to a Model
2018-04-17 10:07:47 +02:00
Miroslav Bajtoš 0cd380c590
feat: remove all references to a Model
Add API allowing applications to hide a Model from the
REST API and remove all references to it, allowing Garbage Collector
to claim all memory used by the model.
2018-04-17 09:42:08 +02:00
Miroslav Bajtoš 77a35231dc
3.18.3
* Remove forgotten debugger statement (Miroslav Bajtoš)
 * Fix role check in apps with multiple user models (Miroslav Bajtoš)
 * Fix formatting issues reported by recent eslint (Miroslav Bajtoš)
 * CODEOWNERS: add nitro404 (Miroslav Bajtoš)
 * test: add missing "return" in a promise-style test (Miroslav Bajtoš)
2018-03-22 09:22:20 +01:00
Miroslav Bajtoš 743b2d1495
Remove forgotten debugger statement 2018-03-22 09:21:44 +01:00
Miroslav Bajtoš 77d3d57252
Merge pull request #3835 from strongloop/fix/role-acl-with-multiple-users
Fix role check in apps with multiple user models
2018-03-22 09:18:37 +01:00
Miroslav Bajtoš f4527c9c91
Fix role check in apps with multiple user models 2018-03-20 14:15:44 +01:00
Miroslav Bajtoš 6ddf268cb6
Merge pull request #3820 from strongloop/fix/eslint-issues
Fix formatting issues reported by recent eslint
2018-03-16 13:32:19 +01:00
Miroslav Bajtoš c611bbbe04
Fix formatting issues reported by recent eslint 2018-03-05 10:03:59 +01:00
Miroslav Bajtoš 8e9fd36878
Merge pull request #3799 from strongloop/welcome-nitro404
CODEOWNERS: add nitro404
2018-02-16 09:17:58 +01:00