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 be6cde2 commit a81dbdcCopy full SHA for a81dbdc
lib/utils.js
@@ -19,6 +19,7 @@ module.exports = class AccessUtils {
19
'$group:member'
20
]
21
});
22
+ // Default the foreignKey to the group model name + Id.
23
this.options.foreignKey = this.options.foreignKey || `${this.options.groupModel.toLowerCase()}Id`;
24
25
// Validate the format of options.accessGroups ($group:[role]).
0 commit comments