We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc931a1 commit 06d8359Copy full SHA for 06d8359
lib/middleware/user-context.js
@@ -22,12 +22,12 @@ module.exports = function userContextMiddleware() {
22
loopbackContext.set('accessToken', req.accessToken.id);
23
const app = req.app;
24
const UserModel = app.accessUtils.options.userModel || 'User';
25
- const TeamModel = app.accessUtils.options.groupAccessModel || 'Team';
+ const GroupAccessModel = app.accessUtils.options.groupAccessModel || 'Team';
26
27
28
return Promise.join(
29
app.models[UserModel].findById(req.accessToken.userId),
30
- app.models[TeamModel].find({
+ app.models[GroupAccessModel].find({
31
where: {
32
userId: req.accessToken.userId
33
}
0 commit comments